mainrotor
asked on
I need help formating a date variable in my VB.Net application
Good afternoon experts,
I have a date variable that i want to format so that the date value as 9/27/2016
displays as follows 0927.
I am using the following format:
MyDate.ToString("MMdd")
but when it places the value of the date field it only displays 927. It drops the leading 0.
How can I fix this?
Thanks in advance,
mrotor
I have a date variable that i want to format so that the date value as 9/27/2016
displays as follows 0927.
I am using the following format:
MyDate.ToString("MMdd")
but when it places the value of the date field it only displays 927. It drops the leading 0.
How can I fix this?
Thanks in advance,
mrotor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window