SyntaxFix
Write A Post
Hire A Developer
Questions
Try this.
var dateAsString = DateTime.Now.ToString("dd/MM/yyyy"); // dateAsString = "09/07/2013"
and also check this link for more formatting data and time