G
Guest
Hi all,
In a user control, the user can put the cultureinfo to his preference,
choosing between "nl-BE","fr-BE", and "en-US". this way all calendar and
datetime properties are set in the right structure.
In a webform I have two textboxes which are filled in by a CalendarPicker in
a Pop-up window, a StartDate and an EndDate.
Works fine.
But on Form.submit, the two textbox.Text are converted by this method
DateTime.ParseExact(TextBox.text, 'ddd,dd MMM yyyy', format)
where format is CurrentCulture.CultureInfo
This works fine if the user does not change his language preferences (and
thus the cultureInfo).
But he wants his application to work in english or french, he gets a
'Datetime is not valid' parser error
Anyone ?
In a user control, the user can put the cultureinfo to his preference,
choosing between "nl-BE","fr-BE", and "en-US". this way all calendar and
datetime properties are set in the right structure.
In a webform I have two textboxes which are filled in by a CalendarPicker in
a Pop-up window, a StartDate and an EndDate.
Works fine.
But on Form.submit, the two textbox.Text are converted by this method
DateTime.ParseExact(TextBox.text, 'ddd,dd MMM yyyy', format)
where format is CurrentCulture.CultureInfo
This works fine if the user does not change his language preferences (and
thus the cultureInfo).
But he wants his application to work in english or french, he gets a
'Datetime is not valid' parser error
Anyone ?