hello i have a question, i use asp.net
i have a int (10112009)
in the end i want a date formate like day- day / month month / yyyy
what's the best way (or a way) to do that?
thanks
hello i have a question, i use asp.net
i have a int (10112009)
in the end i want a date formate like day- day / month month / yyyy
what's the best way (or a way) to do that?
thanks
I would do something like this:
int n = 10112009;
DateTime date;
if (DateTime.TryParseExact(n.ToString("00000000"), "ddMMyyyy",
CultureInfo.InvariantCulture, DateTimeStyles.None, out date))
{
// use date
}