HANA SQL – Converting Date to TimeStamp

light111HANA SQL – Converting Date to TimeStamp 

The TO_TIMESTAMP()  functions helps to convert the date and time to the timestamp format.

The TIMESTAMP data type is really long but in the DB mostly the timestamp is stored as a combination of date and time. In such a case we can apply TO_NVARCHAR () function on the TO_TIMESTAMP() function.

The below program shows the details:


Debug Details:



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s