Hi Dave,
To avoid parsing the string and creating a date from the components (pretty
easy), you might have to create a custom culture that uses that string to
represent a date. Then you'd have to create a custom DateTimeFormatInfo to
apply to it.
Sounds like a lot of trouble compared with pulling off 2, 2 and 4 characters
from the existing string.
Ken
"dave" <da**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
I have a string "05142000" i want it converted to a date.
Any good clean ways of doing this without reverting to string
manipulation?
I have tried
mydate = Date.ParseExact("05142000", "ddMMyyyy", Nothing) but it
complains
about "string is not supported in calendar
System.Globalization.GregorianCalendar"
any ideas?
thx