Convert Timestampz to date or format it doesn't work

I have a field in the database that storage the date (timestamp with time zone) however when retrieving that field in the front end without any transformation the data shows, the output is like this (2023-05-20T00:00:00.000Z), but if i try to modify it to a more user friendly format it doesn't work, toDate or formatDate

Wappler version: 6.8.0
Server: nodejs with docker
Database: Postgres v15.3

Thanks in advance!

Hello @jonathan92 and welcome to the community!

First of all, take a look at this:

After reading the topic above, then:

Date toDate: (Second one) has an extra ")", you should remove it so:

{{sc_list_reviews.data.query_reviews.data[0].review_date.toDate()}}

On Date toDate.FormatDate: (Third one) try:

{{sc_list_reviews.data.query_reviews.data[0].review_date.formatDate('dd/MM/yyyy')}}
1 Like

Hi franse, thanks for your reply, the extra " ) " i removed, but forgot to take another screenshot before uploading, did the configurations as mentioned in that post but the only one i can't find is the database timezone handling, and it still doesn't work, i even put on the page a date picker with time and displayed it's value, but when i try to format it then nothing appears