Possible Duplicate:
format date in c#
How do I convert a date into the following string format?
2011-07-25 15:45:00
here is a pretty good string formatting reference. for your question, you want something like this:
MyDateTime.ToString("yyyy-MM-dd hh:mm:ss");
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