Skip to main content
Nov 7, 2019 8:04 AM UTC
Solved

Wrong date's format

Hello!

 

I'm trying to correctly display the date in the grid column. My date format is this (months go first):

 

2.PNG

 

In the grid properties I set the appropriate format:

 

1.PNG

 

But in mashup the day of the week is displayed instead of number, and the year isn't displayed at all:

 

3.PNG

 

 

 

Nov 10, 2019 2:38 PM UTC

Hello @Mr_Henry_M,

 

Advanced Grid bundles Moment.js, which has its own unique syntax: https://momentjs.com/docs/#/displaying/

 

In your case correct format will be "MM.DD.YYYY H:mm:ss".

 

2019-11-10 15_37_09-Moment.js Sandbox - JSFiddle.png

 

/ Constantine

5 replies

Nov 7, 2019 9:39 PM UTC

Is that Grid Advanced?

Nov 8, 2019 6:32 AM UTC

Yes

Nov 8, 2019 5:12 PM UTC

Doesn't the year need to be YYYY ? 

 

Nov 10, 2019 2:38 PM UTC

Hello @Mr_Henry_M,

 

Advanced Grid bundles Moment.js, which has its own unique syntax: https://momentjs.com/docs/#/displaying/

 

In your case correct format will be "MM.DD.YYYY H:mm:ss".

 

2019-11-10 15_37_09-Moment.js Sandbox - JSFiddle.png

 

/ Constantine

Nov 11, 2019 1:19 PM UTC

Thanks!