Reputation: 37450
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
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