Change Date format to dd/mm/yyyy of Date type Virtual Column

Hi as subject as I am having difficulty in creating an expression for it. This is what I have tried so far,
DATE(TEXT("12/27/2021","dd/mm/yyyy")) but it does not return anything.

Solved Solved
0 2 148
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @nemus 

You may want to consider changing the locale of your table datasource and table in your app editor, and check the locale on your device.

Aurelien_0-1670216245790.pngAurelien_1-1670216273948.png

Please note that generally, AppSheet will consider date processing with US format, i.e mm/dd/yyyy.

This:

DATE(TEXT("12/27/2021","dd/mm/yyyy")) 

Won't work. But you might want to consider, for displaying purpose, using instead:

TEXT(DATE("27/12/2021"),"dd/mm/yyyy")) 
or
TEXT([date],"dd/mm/yyyy") 
or
TEXT([date],"dddd dd mmmm yyyy") 

 (depending on the result expected).

Basically, no need to change anything as long as you use in your expression the mm/dd/yyyy formatting.

For further reference:

Search - Google Cloud Community

Solved: Date Format - Google Cloud Community

Aurelien_3-1670216727910.png

Date and time expressions - AppSheet Help

Aurelien_2-1670216683850.png

 

View solution in original post

2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @nemus 

You may want to consider changing the locale of your table datasource and table in your app editor, and check the locale on your device.

Aurelien_0-1670216245790.pngAurelien_1-1670216273948.png

Please note that generally, AppSheet will consider date processing with US format, i.e mm/dd/yyyy.

This:

DATE(TEXT("12/27/2021","dd/mm/yyyy")) 

Won't work. But you might want to consider, for displaying purpose, using instead:

TEXT(DATE("27/12/2021"),"dd/mm/yyyy")) 
or
TEXT([date],"dd/mm/yyyy") 
or
TEXT([date],"dddd dd mmmm yyyy") 

 (depending on the result expected).

Basically, no need to change anything as long as you use in your expression the mm/dd/yyyy formatting.

For further reference:

Search - Google Cloud Community

Solved: Date Format - Google Cloud Community

Aurelien_3-1670216727910.png

Date and time expressions - AppSheet Help

Aurelien_2-1670216683850.png

 

My Bad, I realised the column I needed to change was just a normal text virtual column, so I just used use the Text() method. Thank you

Top Labels in this Space