You need to sign in to do that
Don't have an account?
lapaul
extract time portion out of a date time object
Hi,
Has anyone have experience in extracting a time portion out of a date time object?
For example: 8/12/2009 2:20 PM
I just want to extract the time 2:20 PM from the date time object above. Please advice.
Your help is expreciated.
Paul
Date.Format() will do the job.
Example:
system.debug(System.NOW().format('hh:mm a'));
Raymond
All Answers
Date.Format() will do the job.
Example:
system.debug(System.NOW().format('hh:mm a'));
Raymond