y (year)M (month)d (day)h (hour 12)H (hour 24)m (minute)s (second)f (second fraction)F (second fraction, trailing zeroes are trimmed)t (P.M or A.M)z(time zone)C# Example:
//Create DateTime value
DateTime currectDateTime = DateTime.Now;
Response.Write(String.Format("#1 {0:y yy yyy yyyy}", currectDateTime));





0 comments:
Post a Comment