Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I need help with this, I am using the VBScript programming platform.
I am using the FormatDateTime (Now ()) declaration which gives me the departure date and time (Format: AM-PM).
What I want is for it to continue launching Date and Time (Format: 24 hours)
Regards,


What I have tried:

FormatDateTime (Now ()) 
Posted
Updated 13-Mar-20 11:54am

1 solution

VBScript FormatDateTime Function[^]

To display the date and time with 24h format, use
VBScript
d = Now()
FormatDateTime(d, 2) & " " & FormatDateTime(d, 4)
Result:
03/13/2020 22:53
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900