Wednesday, October 31, 2012

midnight is the default time of day for a DateTime in C#

DateTime halloween = Convert.ToDateTime("10/31/2012");

...will convert to a DateTime of: 10/31/2012 12:00:00 AM

No comments:

Post a Comment