My Products
Help
Anonymous
Not applicable

Interpreting the lastModifiedDateTime and createdDateTime

by Anonymous

Hi! 

 

We are building a Java library for calling Visma and we need to know how to map date-time from the JSON response to some date represantation in Java. 

 

From an API call: 

"lastModifiedDateTime": "2021-02-10T20:41:59.147",
"createdDateTime": "2021-02-10T20:41:36.42",

 

Could you please help me with the following questions:

-How should we understand those dates?

-What is the time zone? Or is it UTC but in format of local date time?

 

Thanks!

/Frida 

3 REPLIES 3

by Yıldırım

Hello, additionally, 


API Response Header "Date" is always GMT / UTC
2021-04-20 16_43_27-Window.png
Application (Financials ERP & DB) returns the LastModifiedDateTime value stored in the database based on the server location which is currently CEST (UTC/GMT+2) and this will be CET (UTC/GMT +1) during the winter time.

Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

If it's the format you are asking for it's "yyyy-MM-ddTHH:mm:ss.FFF" and the Timezone is CET/ GMT + 1. It follows local time in Norway and accounts for summer/winter time.

Anonymous
Not applicable

by Anonymous

Hi! 

 

Thank you so much for a quick reply!

 

Have a nice day!

/Frida