chris
chris

Reputation: 37450

mvc3: Binding a datetime in a localized application?

I have an MVC3 application that supports multiple languages.

Do I need to create a custom binder in order to bind a DateTime field using the correct locale?

Upvotes: 1

Views: 344

Answers (1)

Jakub Konecki
Jakub Konecki

Reputation: 46008

No, assuming that you set proper CultureInfo on Threading.Thread.CurrentCulture and Threading.Thread.CurrentUICulture and you always post datetimes in this culture.

Upvotes: 2

Related Questions