Parth Bhatt Parth Bhatt - 1 year ago 107
ASP.NET (C#) Question

How to get current date in 'YYYY-MM-DD' format in ASP.NET?

How to get current date in 'YYYY-MM-DD' format in ASP.NET ?

Answer Source

Which WebControl are you using? Did you try?

DateTime.Now.ToString("yyyy-MM-dd");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download