T
Travis Pupkin
Hi,
When pulling the hour (or minute, or second, or day, or month, etc) from
the server like:
<%= hour(time) %>
Is there a quick way (like, without an if then statement to check it and
fix it) to format it so it represents all hours in two digits like:
00
for 12 am. instead of just:
0
?
Thanks.
When pulling the hour (or minute, or second, or day, or month, etc) from
the server like:
<%= hour(time) %>
Is there a quick way (like, without an if then statement to check it and
fix it) to format it so it represents all hours in two digits like:
00
for 12 am. instead of just:
0
?
Thanks.