M.Ammar Posted March 13, 2019 Share Posted March 13, 2019 hi all, how do I get server machine date and time, thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2019 Share Posted March 13, 2019 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 1 Quote Link to comment Share on other sites More sharing options...
M.Ammar Posted March 13, 2019 Author Share Posted March 13, 2019 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2019 Share Posted March 13, 2019 2 minutes ago, M.Ammar said: this demo code will display client machine date time right? No, This is the server date and time. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.