Converting "yyyymmdd" date string into "dd monthname yyyy" format

  • Thread starter Thread starter stainless
  • Start date Start date
S

stainless

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
 
Mark,

The format to use when parsing is "yyyyMMdd" while the output for the
new output is "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
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
 
Back
Top