• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

Date Time format .NET inline code

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

<%= DateTime.Now.ToString() %>
0
baxtalo
Asked:
baxtalo
2 Solutions
 
Manoj PatilSr. Software EngineerCommented:
0
 
abhinayp86Commented:
<%=DateTime.Now.ToString("yyyy-MM-dd")%>
0
 
baxtaloAuthor Commented:
Thank you
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now