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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:23:15+00:00 2026-06-04T19:23:15+00:00

In which format should I put the date and time, for use in the

  • 0

In which format should I put the date and time, for use in the HTML5 input element with datetime type?

I have tried:

  • 1338575502
  • 01/06/2012 19:31
  • 01/06/2012 19:21:00
  • 2012-06-01
  • 2012-06-01 19:31
  • 2012-06-01 19:31:00

None of them seem to work.

  • 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-06-04T19:23:18+00:00Added an answer on June 4, 2026 at 7:23 pm

    For <input type="datetime" value="" ...

    A string representing a global date and time.

    Value: A valid date-time
    as defined in [RFC 3339], with these additional qualifications:

    •the literal letters T and Z in the date/time syntax must always be uppercase

    •the date-fullyear production is instead defined as four or
    more digits representing a number greater than 0

    Examples:

    1990-12-31T23:59:60Z

    1996-12-19T16:39:57-08:00

    http://www.w3.org/TR/html-markup/input.datetime.html#input.datetime.attrs.value

    Update:

    This feature is obsolete. Although it may still work in some browsers,
    its use is discouraged since it could be removed at any time. Try to
    avoid using it.

    The HTML was a control for entering a date and
    time (hour, minute, second, and fraction of a second) as well as a
    timezone. This feature has been removed from WHATWG HTML, and is no
    longer supported in browsers.

    Instead, browsers are implementing (and developers are encouraged to
    use) the datetime-local input type.

    Why is HTML5 input type datetime removed from browsers already supporting it?

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime

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

Sidebar

Related Questions

We have bunch of Domain Entities which should be rendered to an html format,
I'm building something which has a countdown to a certain date/time. I have it
I have data posted with my <input type=submit value =submit> which has the following
Does anybody know which date format is to be used, trying to create a
I have XML in the following format which I want to reformat: <blocks> <!--
I have a database in a format which can be accessed via ODBC. I'm
I have this old Access database (2000 format) which i want to convert to
I have a form which I submit and I use .serialize to help me
I have a parameter, where user can choose for which period of time data
I have a function of which I need to return the time for another

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.