Days and months inverted while running an agent on server

Hi

While running an agent on server, I need to get the current date. Actually it inverts days and month, so if the current date is the 1st of may, the function notesdatetime(today) returns the 5th of January, has anyone a solution to that problem (while running the agent on local, it works correctly)

Regards

Subject: Most likely the date format on the server is set to US date format

And your code is handling date as strings instead of datetime items.

Subject: use .Lslocaltime it will solve ur problem