Start a new topic
Answered

Display the date part of the CreateDate

Hi, trying to convert the internal CreateDate attribute to just its date part but struggling to find the correct built in function to do this. Backend is PostgreSQL


Best Answer

To display a timestamp with the only the date part shown like this:

Date Part Only
Date Part Only

What you can do is to create a field or column with the Value using this SemQL:

TO_CHAR(CreationDate, 'DD Mon YYYY')

As it's now converted to a character, don't forget to set the 'Component Type' to Text and the 'Default Value Data Type' to String


Answer

To display a timestamp with the only the date part shown like this:

Date Part Only
Date Part Only

What you can do is to create a field or column with the Value using this SemQL:

TO_CHAR(CreationDate, 'DD Mon YYYY')

As it's now converted to a character, don't forget to set the 'Component Type' to Text and the 'Default Value Data Type' to String

Hi,

I have a requirement as below:

I have a field with Data type as 'Timestamp'. Our inline database is SQL Server.

We have below requirements:

During Editing a record (Direct Authoring), user wants to select only date for this field (time option should not be there), and after submitting only date should be shown in that field.

Please suggest.


Regards,

Kousik

Login to post a comment