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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:53:14+00:00 2026-05-22T17:53:14+00:00

I am getting Date in this format (Fri May 13 2011 19:59:09 GMT 0530

  • 0

I am getting Date in this format (Fri May 13 2011 19:59:09 GMT 0530 (India Standard Time) )

Please tell me how can i use Javascript split function , so that i can get only May 13 2011 ??

  • 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-22T17:53:15+00:00Added an answer on May 22, 2026 at 5:53 pm

    You could split() using space as the delimiter, slice() the required elements and then join() again with a space.

    str = str.split(' ').slice(1, 4).join(' ');
    

    jsFiddle.

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

Sidebar

Related Questions

I am getting a Date format in String as Output like this. Fri May
I am getting a date in this format: 2011-05-23 6:05:00 How can I obtain
My date string that I am getting is 8/5/2011 1:38:13 PM of this format.
I'm parsing this date format from XML:=> 2011-12-06T07:41:14.016+00:00 , and I'm getting this error:
Hi I have a date format like this (in English format) 15. July 2011
I'm getting from the server a Json object with this format Date: /Date(1337032800000+0000)/ and
I have this date format , var dateobj = 'Apr 28, 2011 6:01:23 AM';
I am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and
I have a date in the format 05/22/2011 13:10 Eastern Time (US & Canada)
I am getting date in 2011-10-01T21:00:00.0000000-07:00 format from the server. I have tried to

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.