Dates are showing as a string in the app

Hi, In the backend data the dates are showing correctly, but in the app, they are shown as a string. How can make the display a proper date please?

Hi @Sara

You can use the Date from Timestamp block for that (Date section). The example below shows how to convert a timestamp into a date from a simple numeric value #1 and from a database value #2:

Regards,
Marina

What does ‘Print’ mean? I just want to display the date properly on a screen from a database field.

Hi @Sara

The “Print” blocks in the examples were used only to show you in the console the format in which the date will be displayed, and to demonstrate that the “Date from Timestamp” block works correctly with both the input value and the value taken from the database.
Please use the “Date from Timestamp” block in your logic to display the date in the ‘Reading Date’ field.

Regards,
Viktor