Possible Duplicate:
Format .NET DateTime “Day” with no leading zero
Is there a way to remove the leading zeros in the date format
For example, X.ToString("MM/dd/yy")
returns 07/02/11 but I'd like it to instead return 7/2/11.
Is this possible?
Thanks
X.ToString("M/d/yy")
is what you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With