2 digit month

momoko

Registered User.
Local time
Today, 19:39
Joined
Oct 7, 2001
Messages
41
Hi,

How can I get a 2 digit month when I use month(now())? I've getting only 1 instead of 01. Please advise.
 
use the format command:-

format(month(now()), "00")

or

format(now(), "mm")
 

Users who are viewing this thread

Back
Top Bottom