meperera
asked on
How to convert MS Access time format to 24 hour format
Hi Experts ,
I have a database field with the time in the following format
10/04/2009 2:50:00 PM
I need to convert that to 14:50:00
Could someone please show me how to
Thanks
I have a database field with the time in the following format
10/04/2009 2:50:00 PM
I need to convert that to 14:50:00
Could someone please show me how to
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if your app is international or maybe you use different delimiters for time, you can use "short time" as the 2nd argument in the format command. THis takes the international settings as defined in control panel.
try this
Format("10/04/2009 2:50:00 PM", "dd/MM/yyyy hh:mm:ss")
it will convert it to
-------------------------- -
10/04/2009 14:50:00
-------------------------- -
Format("10/04/2009 2:50:00 PM", "dd/MM/yyyy hh:mm:ss")
it will convert it to
--------------------------
10/04/2009 14:50:00
--------------------------