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 122021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:03:46+00:00 2026-05-11T04:03:46+00:00

When displaying my DateTime values, I want them to be formatted like so: February

  • 0

When displaying my DateTime values, I want them to be formatted like so: ‘February 9, 2009 7:00 AM’

I am using the following code, but am concerned that the date may display incorrectly in other cultures. Can anyone tell me if this is the case or not, and if it is how can I fix it?

Date.ToString('MMMM dd, yyyy hh:mm tt'); 

Thanks!

  • 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. 2026-05-11T04:03:47+00:00Added an answer on May 11, 2026 at 4:03 am

    I am using the following code, but am concerned that the date may display incorrectly in other cultures.

    What exactly is ‘correct’? Are you a normal client-side app? If so, you’ll get localised month names. Is that ‘incorrect’? Depends what you’re looking for.

    If you do want locale-friendly times in a client-side app then using the default long date format will give you the smoothest results. In my locale I wouldn’t want to see 12-hour clock or the month before the day, though I’d surely understand it.

    If you’re a server-side app you don’t want to use any default-localised anything, because the locale will be your server’s rather than your users’, and you’ll have a weird portability problem. In this case you’ll have to either allow the user to pick out their own locale, or use your own date formatting functions with built-in English month names.

    (Or, to avoid the problem, no month names. In which case ISO-8601 format “YYYY-mm-dd HH:MM:SS” would be the default choice.)

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

Sidebar

Related Questions

I'm displaying a month name like this: String.Format({0:MMMM}, DateTime.Now) However, when using Swedish all
I have a website that displays the current date using the code Datetime.Now .
I am displaying a texture that I want to manipulate without out affecting the
I did something like this : import datetime nb_blank_days = (int(datetime.date(year, month, 1).strftime('%w'))+6)%7 But
I was going through some reports that were supposed to be displaying 2/1/2009 -
So I have a model instance that has a datetime attribute. I am displaying
I am displaying the contents of a datetime field in mysql in a table
When displaying all articles of a specific month (given through the urls like this
When displaying a group of JRadioButtons, initially none of them is selected (unless you
I'm displaying a set of images as an overlay using Google Maps. Displaying these

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.