Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

Help Me/Question What Is The Difference Between Datetime And Datetime-local

Discussion in 'HTML Coding' started by Doominic anderson, Feb 10, 2016.

  1. Doominic anderson

    Yellow Belt

    Joined:
    Jan 30, 2016
    Messages:
    399
    Ratings:
    +21 / -0
    In HTML5 datetime and datetime-local these are two values of the type attribute.
    Both are used for displaying date and time but if both are used for same purpose.what is the need of two values?
    What is the main difference between datetime and datetime-local,both are same or different plz explain with example if it's possible?
     
  2. RADHESHYAM GUPTA

    Yellow Belt

    Joined:
    Feb 13, 2016
    Messages:
    362
    Ratings:
    +20 / -0
    The main difference between Input type datetime and Datetime-Local is:-
    Datetime local input does not includes the time zone. If time zone is not important for your application then Use datetime-local.
    But Input Type datetime is include the time zone and date and year or month also but not Week,
    If time zone is important for your Application Then use Input Type datetime.
     
  3. steve taylor

    Yellow Belt

    Joined:
    Feb 12, 2016
    Messages:
    769
    Ratings:
    +25 / -0
    As the name of the both input types datetime-local and datetime. Datetime-local is used for receiving the local date and time it is independent of time zone because it is local. Where as Datetime input type used the time zone for receiving date and time because it can support world wide date and time.
     
  4. niranjan kumar

    Yellow Belt

    Joined:
    Feb 12, 2016
    Messages:
    471
    Ratings:
    +13 / -0
    Date time and local date time is really used in websites. But i think these types of data you can directly used from local time-zone or you can also configure your time from your hosting server , such as you are hosted your server in asia.
     

Share This Page