RE:fecha y hora actual del server
No se si puedes revisarte este ejemplo que esta en la ayuda, que hace un momento lo estaba viendo.
*******************************************************
Example
To recreate this example, you will need to create a new Delphi application.
Drop a TButton, a TLabel, and a TNMDayTime1 on the form.
Place the following code into Button1's OnClick event.
procedure TForm1.Button1Click(Sender: TObject);
begin
NMDayTime1.ReportLevel := Status_Basic;
NMDayTime1.TimeOut := 5000;
NMDayTime1.Host := 'www.netmastersllc.com';
Label1.Caption := NMDayTime1.DayTimeStr;
end;
In this example, the ReportLevel property is set to Status_Basic, for basic status reporting. The TimeOut property is set for 5 seconds (5000 milliseconds). The Host property is set to 'www.netmastersllc.com', which has a DayTime server running. Finally, Label1's caption is set to the current date and time by reading the DayTimeStr property, which returns the date and time in a format determined by the server.