Date Time format .NET inline code

How could I replace this to get the date in yyyy-MM-dd format

<%= DateTime.Now.ToString() %>
baxtaloAsked:
Who is Participating?
 
Manoj PatilConnect With a Mentor Sr. Software EngineerCommented:
0
 
abhinayp86Connect With a Mentor Commented:
<%=DateTime.Now.ToString("yyyy-MM-dd")%>
0
 
baxtaloAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.