Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6844803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:25:22+00:00 2026-05-27T00:25:22+00:00

Ok this is really driving me nuts, dates in my MVC 3 application will

  • 0

Ok this is really driving me nuts, dates in my MVC 3 application will only show in American date format i.e. mm/dd/yy.

I have checked my systems location setting and everything is set to the UK, I’ve checked the globalisation settings in IIS and set those to United Kingdom. I have also added the following to my applications web.config:

<globalization uiCulture="en-GB" culture="en-GB" />

But still dates show in mm/dd/yy format! I have tried to format the dates in my views using .ToString() as follows:

@location.DateFrom.ToString("dd/MM/yyyy")

Still American format! Can someone please shed some light on this as its literally driving me insane, I can’t even think of what else to change. Any help would be greatly appreciated, cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:25:23+00:00Added an answer on May 27, 2026 at 12:25 am

    This will certainly format for “en-GB”:

    @location.DateFrom.ToString("dd/MM/yyyy", CultureInfo.GetCultureInfo("en-GB"))
    

    You need to check the Thread.CurrentCulture and Thread.CurrentUICulture to see what they are returning.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really driving me nuts, I have a datagridview bound to a bindingsource,
This is probably a really obvious question, but it's driving me nuts. We have
This is driving me nuts. I have a working text based application. It has
this problem is driving me really mad. In an Asp.Net-application, I have two DropDownLists,
This is really simple, though still driving my nuts. I have a uitableview where
I really need some help as this is driving me nuts! I need to
This is really simple but driving me nuts. I am trying to implement a
So this has just been driving me nuts! I have looked through tons of
I'm driving myself nuts with this particular problem, i really hope someone can help!
This has been driving me nuts for the past hour. I have two computers,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.