How do I get only day+month+year in C#?
Vague question.
Do you need this as a string?
DateTime.Now.ToString("MM/dd/yyyy")
There are also Day, Month, Year values you can work with on the DateTime struct.
Everything you need is right here: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
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