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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:52:56+00:00 2026-05-28T02:52:56+00:00

I have a date in the format MM/DD/YYYY. I need to then convert it

  • 0

I have a date in the format MM/DD/YYYY. I need to then convert it into , using javascript. (More exact example: 05/25/2012 –> “May 25, 2012”) I know how to convert the dates, but by question is:

Is there a more efficient way, whether using a javascript function or something else, to convert the MM/DD/YYYY to the format above instead of using a switch statement and concatenating strings?

  • 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-28T02:52:56+00:00Added an answer on May 28, 2026 at 2:52 am

    By accessing an array you could do this

    var monthArray = ['January', 'February', ... , 'December'];
    
    
    var date = "05/25/2012";
    
    var dateParts = date.split('/');
    
    var convertedDate = monthArray[parseInt(dateParts[0], 10)] + " " + dateParts[1] + ", " + dateParts[2];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Date in this format (2012-11-17T00:00:00.000-05:00). I need to convert the date into
I have a date with the format 2012-02-02(yyyy-MM-dd). For example if todays date is
I have the need to display a date in this format: dd/mm/yyyy. This is
I have a varchar column which contains date in following format dd/mm/yyyy I need
I have date value stored in format dd.mm.yyyy as longtext . I need to
I need date part from datetime. in format of dd-mm-yyyy I have tried follwoing
I have a date being passed to my script in the format as yyyy-mm-dd.
I have date in sting object in following format. dd/mm/yyyy I want to change
I am have a string named begin_date which contain date in the format dd.mm.yyyy
I have a Date format: 2009-08-10T16:03:03Z that I want to convert to: @MMM dd,

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.