Jump to content

Get Server Time


M.Ammar

Recommended Posts

Hi,

31 minutes ago, M.Ammar said:

how do I get server machine date and time,

There are many reasons, how do you want to get?...

Simple, you can use UniTimer for this and send to the Client

For example:

procedure TMainForm.UniClockTimerTimer(Sender: TObject);
begin
  //RefreshTime;
  UniStatusBar1.Panels[0].Text := FormatDateTime('dd/mm/yyyy hh:nn', Now);
end;

\FMSoft\Framework\uniGUI\Demos\Desktop\AllFeaturesDemo

  • Like 1
Link to comment
Share on other sites

thank you for the reply

this demo code will display client machine date time right?

but I want to get server machine date time,  this application is time sensitive and client machine time may not be correct.

I want to compare, DateTime on both client machine and server machine to make sure that the date is correct and get different in time.

can I do that?

regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...