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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:31:03+00:00 2026-05-16T23:31:03+00:00

I have this string: 2010-09-21T15:48:12.754+02:00 I would transform it in this format: Tue Sep

  • 0

I have this string:
2010-09-21T15:48:12.754+02:00

I would transform it in this format:
Tue Sep 21 15:48:12 CEST 2010

How can I do it with javascript or jQuery?

Thanks a lot.
MP.

  • 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-16T23:31:04+00:00Added an answer on May 16, 2026 at 11:31 pm

    Try this:

    var d = new Date("2010-09-21T15:48:12.754+02:00");
    var date = d.toDateString().split(/\s/);
    var time = d.getHours() +':'+ d.getMinutes() +':'+ d.getSeconds();
    date.splice(3, 3, time, 'CEST', d.getFullYear());
    date.join(' '); // Tue Sep 21 15:48:12 CEST 2010 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this string format mm/yyyy- 01/2010 how do i get the month and
I have this string stored in a variable: IN=bla@some.com;john@home.com Now I would like to
I have this sample string: Sample string 1: A^1.1#B^1#I^2#f^0#p^1#d^2010-07-21T08:52:05.222ZKHBDGSLKHFBDSLKFGNIF#%$%^$#^$XLGCREWIGMEWCERG Sample string 2: A^1.1#B^1#f^0#p^1#d^2010-07-22T07:02:05.370ZREGHCOIMIYR$#^$#^$#^EWMGCOINNNNNNVVVRFGGYVJ667VTG So,
HI, I have this string: 2010-12-27 23:05:36.0. When I parse it with CDate like
I have a var return from a webservice in this string format- [{Age:20,Term:10,Mode:Yearly,SA:25000,ADBRAge:20,ADBRTerm:10,ADBRSA:25000,IP:56321,Name:someone,Advisor:someon,Sex:Male,date:20-12-2010,DOC:20-12-2010,DOB:20-12-1984,ADBRIP:250123}] can
I have this data coming from a REST method using jquery's getJSON method. [Date.UTC(2010,0,0,0,0,0,0),
I have this string... var myDate = November 15, 2010; .....and I need to
if i have this in a string : 10/13/2010 8:38:40 AM how to make
I have a string 10/15/2010 I want to split this string into 10, 15,
I have a string and need a RegEx Pattern for this, so I can

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.