How to use the date picker in HTML

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 7

  • @JesusGonzalez-oi7cb
    @JesusGonzalez-oi7cb 10 หลายเดือนก่อน

    Thank you for the video. It was informative. I've searched and searched but can't seem to find anything on how to limit a date selector of 7 days. I'm adding an appointment form where one should only have the option of selecting from the current day up to 7 days out. Can anyone provide any info on how to do that task? Or is it too complex for HTML5 to handle that I need to use a jquery/js/library/ to do it?

  • @beethekay
    @beethekay ปีที่แล้ว

    Can you somehow change the default date Format of the datepicker to yyyy-mm-dd? Without having to use jquery?

    • @cwm-codingwithmike
      @cwm-codingwithmike  ปีที่แล้ว

      Sorry for the late reply. I looked up the documentation on this at developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date. The displayed format is dependent on the locale of the user.

  • @juanpabloj.gomezgutierrez5303
    @juanpabloj.gomezgutierrez5303 9 หลายเดือนก่อน

    ufff la verdad gracias por mostrar tantos tipos de inputs

  • @calebmcclure3893
    @calebmcclure3893 ปีที่แล้ว

    why don't you show the full pollyfill code at 7:59

  • @Toro-Tor
    @Toro-Tor 2 ปีที่แล้ว

    Just want to let the creator know: I stopped the video after 35 seconds, because imho this a totally wrong approach:
    You got something that doesnt work in all browser - now instead of simplifying what you have (ex. that over complicated bootsrap 4 or 5 consisting of 25 000 lines of css [of which you are using only 50], plus 10 sheets js mainly for stupid animations that no one needs, plus ... plus ...) , YOU WANT TO ADD MORE CRAP !
    Modinezer yes, you should use that at the beginning of your css, BUT that download-version you can shorten and simplify to a few lines, mainly to reset browser magins and paddings etc. - ONE STYLSHEET, less than 600 lines is eough to realize any project, including slider-styling, form-styling etc.
    Simply put: LESS IS BETTER !!!
    The more crap you add to your project, the more problems you (the developer) is going to have AND the user (visitor of website) benefits from none of this.
    goobye

    • @cwm-codingwithmike
      @cwm-codingwithmike  2 ปีที่แล้ว +3

      I appreciate your comment. The intent of the video is to help those who are just starting out and struggling with how to get a date time picker added, when not all browsers support it. But you stopped at 35 seconds so....again thanks for the comments.