To format a DateTime:
string a = date.ToString("MM/dd/yyyy"); the string will look like "03/02/2008"
You can also do "MMM dd, yyyy", then you will have "Mar 02, 2008". For the entire list of format options, please see http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment