Sometimes we want to change the culture of the page in our razor file. This is useful when we want to have multiple cultures in the same page. Let’s see an example.
@{
Culture = UICulture = "fr-FR";
}
French Format Date and Time: @DateTime.Now<br />
@{
Culture = UICulture = "el-GR";
}
Greek Format Date and Time: @DateTime.Now