Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a field that is in the following format.
YYYY-MM-DD HH:MM:SS
Is it possible to load this field to the following format.
YYYY/MM/DD HH:MM:SS AM or YYYY/MM/DD HH:MM:SS PM
Hi
You can use the "timestamp#" function and then format the time as you need.
timestamp(timestamp#(DateField,'YYYY-MM-DD HH:mm:ss'),'YYYY/MM/DD hh:mm:ss tt')
Please give this a try.
Regards,
This should do it:
Date(Date#(myDateField, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss tt')
Hi
You can use the "timestamp#" function and then format the time as you need.
timestamp(timestamp#(DateField,'YYYY-MM-DD HH:mm:ss'),'YYYY/MM/DD hh:mm:ss tt')
Please give this a try.
Regards,
This should do it:
Date(Date#(myDateField, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss tt')
Thanks Guys, Date(Date#(myDateField, 'YYYY-MM-DD hh:mm:ss'), 'YYYY/MM/DD hh:mm:ss tt') did the job!