SyntaxFix
Write A Post
Hire A Developer
Questions
Use DateTime.Now.ToString("yyyy-MM-dd h:mm tt");. See this.
DateTime.Now.ToString("yyyy-MM-dd h:mm tt");