Converting Date string starts with days to DateTime Format vb.net
-
29-09-2019 - |
문제
I Have this date "27/03/1985" and because it starts with days i can't convert it to datetime.
해결책
See: http://msdn.microsoft.com/en-us/library/w2sa9yss.aspx
DateTime.ParseExact()
lets you specify the format of the string representation.
다른 팁
Yes you can. You just need to use the right culture specifier. It's a UK date so you need so supply the correct format provider:
dateValue = DateTime.Parse(dateString, culture);
where culture
is of type CultureInfo
제휴하지 않습니다 StackOverflow