Created
September 6, 2011 12:54
-
-
Save kristofclaes/1197460 to your computer and use it in GitHub Desktop.
Look at the code I have to work with...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DateTime date = Convert.ToDateTime(xn["date"].InnerText); | |
string dateString; | |
dateString = date.Day + "-"; | |
if (date.Month < 10) | |
{ | |
dateString += "0"; | |
} | |
dateString += date.Month + "-" + date.Year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment