Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

How do I enforce a two digit month?

I need to make sure that January displays as "01"

What parameter needs to go into the ToString()?

now.Month.ToString()

newbieweb
Avatar of curiouswebster
curiouswebster
Flag of United States of America image

ASKER

Is this what I need:

now.Month.ToString("MM")

?

SOLUTION
Avatar of klakkas
klakkas

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Avatar of Swapnil
Swapnil
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks.