I know this is probably simple but I cannot find a method of
converting a date string into a format that matches the DatePicker
format in C#
eg string "20080131" converted to "31 January 2008"
I tried datetime.parseexact but could not find the definition for the
appropriate format string.
This would be a very useful tool fo me. Any ideas,please?
Mark
Nicholas Paldino [.NET/C# MVP] - 31 Jan 2008 18:21 GMT
Mark,
The format to use when parsing is "yyyyMMdd" while the output for the
new output is "dd MMMM yyyy".

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I know this is probably simple but I cannot find a method of
> converting a date string into a format that matches the DatePicker
[quoted text clipped - 8 lines]
>
> Mark
Family Tree Mike - 31 Jan 2008 18:28 GMT
On input parsing you would use "yyyyMMdd", and on output use "dd MMMM yyyy",
> I know this is probably simple but I cannot find a method of
> converting a date string into a format that matches the DatePicker
[quoted text clipped - 8 lines]
>
> Mark