SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
DateTime Date = DateTime.Now.AddHours(-DateTime.Now.Hour).AddMinutes(-DateTime.Now.Minute) .AddSeconds(-DateTime.Now.Second);
Output will be like:
07/29/2015 00:00:00