Australian or British Date format in ASP.NET

Having problems with dates appearing in US format (mm/dd/yyyy) and not British or Australian format (dd/mm/yyyy)? Are you getting the famous “Invalid datetime format” error?

If your British, whack the following in your web.config file.

Else if you’re Australian, use the following.

Also, make sure your connection string has the following: ;Language=British



Did you like this? Share it:

No related posts.



One Response to “Australian or British Date format in ASP.NET”

  1. pavan says:

    in asp.net you can also use
    page.culture=”en-GB”

    to make acceept british/australian/indian/irish date format!

Leave a Reply

You must be logged in to post a comment.