I need to use JavaScript and want the current time to display with either AM or PM.
I have the following script:
util.printd("m/d/yyyy h:MM A, new Date),
but it does not display AM or PM.
Is there a way to script this using javaScript?
Solved! Go to Solution.
Views
Replies
Total Likes
Is that really the exact script you're using? If so, try this:
util.printd("m/d/yyyy h:MM tt", new Date())
This will give am or pm, so you'll have to capitalize the resulting string if you want AM/PM.
Views
Replies
Total Likes
Is that really the exact script you're using? If so, try this:
util.printd("m/d/yyyy h:MM tt", new Date())
This will give am or pm, so you'll have to capitalize the resulting string if you want AM/PM.
Views
Replies
Total Likes
That's exactly what I was missing! Thank you so much!
-Don
Views
Replies
Total Likes