day month year

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how to get the
day if 1-9 then 01-09 else 11-31
month if 1-9 then 01-09 else 10-12
year 01-99
 
Response.Write (DateTime.Now.ToString("MM"));
Response.Write (DateTime.Now.ToString("yy"));
Response.Write (DateTime.Now.ToString("dd"));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top