SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this:
DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss");