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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:48:21+00:00 2026-05-23T07:48:21+00:00

Dates are always a kick in the nuts (at least for me) and I

  • 0

Dates are always a kick in the nuts (at least for me) and I faced the fact that Javascript doesn’t seem to have a method to format dates.

I’m trying to format a date to use the Google API which ask you for a date in this format: yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss.fffffff (e.g. 2011-06-25T10:00:00.000+02:00)

I need to be able to read that kind of string and to produce one.

  • 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-23T07:48:21+00:00Added an answer on May 23, 2026 at 7:48 am

    I often use jQuery plugin: http://plugins.jquery.com/project/jquery-dateFormat

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="https://raw.github.com/phstc/jquery-dateFormat/master/jquery.dateFormat-1.0.js"></script>
    <script type="text/javascript">
    $(function() {
        var d = new Date();
        alert($.format.date(d, 'yyyy-MM-ddTHH:mm:ss'));
    })
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have dates as a list in the following format: 09-2012,10-2012,01-2013 What will be
I was wondering if Javascript date/time functions will always return correct, universal dates/times or
I have a table containing pipes that are installed at a location. Installed dates
Dates and formatting have always been a bit of a nightmare for me. Lately
i have an array of vacation dates. These are always going to be weekdays.
I have populated a sorted list of dates(stored as strings in the format dd/mm/yyyy)
I am trying to parse some dates that are coming out of a document.
I have an app where there is always a current contest (defined by start_date
my dates in my table are strings in the format: 10/12/2009 Now how would
I store dates as String in my database, in this format: YYYY-MM-DD HH:MM and

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.