Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rajarshi_guin
Contributor III
Contributor III

How to convert a date field to a timestamp field

Hi,

I want to store the current date of previous year along with the time as 12:00 AM in a variable. For example, today's date is 06/07/2017. So, I need to store the value as 07-Jun-16 12.00.00.000000 AM. The time need to be 12.00.00.000000 AM always. Also the date needs to be in the format DD-MMM-YY. Can anyone please let me know how to store this in a variable.

1 Reply
sunny_talwar

May be just this

TimeStamp(Date, 'DD-MMM-YY hh.mm.ss.ffffff TT') as TimeStamp