posted 2/3/2009 by Vijendra Shakya
Date and Time is almost used in all application.Here we discuss about the date time format in asp.net.
we can set datetime format following are some formats.
d - day of the month, like 2dd - day of month ,like 02 it leads 0ddd - first 3 character of the name of the week day, like Monddd - Full name of the week day, like Monday M - Month without leading 0, like 2MM - Month with lading 0, like 02MMM - first 3 character of month name ,like JanMMMM- full name of month ,like Januaryyy - it shows year like 09yyyy - it show full year, like 2009h - it show hour like 2 it does't contains leading 0hh - it contains leading 0 ,like 03m - it shows minutes ,like 3mm - it shows,like 03s - second without leading 0, like 3ss - second with leading 0,like 03
use above format some examples are given below.
Pattern Display formatM/d/yyyy 2/3/2008MM/dd/yyyy 02/03/2008MMM/ddd/yy Jan/Mon/08MMMM/dddd/yyyy January/Monday/2008MMMM,dddd,yyyy January,Monday,2008,MMMM,dddd dd,yyyy Monday,January 03,2008MMMM,dddd,yyyy h:mm tt January,Monday,2008 1:34 PMMMMM,dddd,yyyy h:mm:ss tt January,Monday,2008 1:34:15 PM
Pattern Display format
Of course... Indeed...
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18