5 "Must-Know" Date Input Types in HTML

There are 5 input types which allow user to enter/pick date, time, week, month, year etc.

➊ datetime-local
➋ date
➌ time
➍ week
➎ month
➊ datetime-local

⬒ Use this input type if requirement is to pick both "date" and "time" (independent of any timezone).

⬓ We can use 2 other attributes to define the limit restrictions and step values.

❍ min
❍ max
❍ step <input type="datetime-local" >
➋ date

⬒ Use this input type if requirement is to pick only "date".

⬓ We can use 2 other attributes to define the limit restrictions and step values.

❍ min
❍ max
❍ step
➌ time

⬒ Use this input type if requirement is to pick only "time" (independent of any timezone).

⬓ We can use 2 other attributes to define the limit restrictions and step values.

❍ min
❍ max
❍ step
➍ week

⬒ Use this input type if requirement is to pick "week" and "year".

⬔ The "week" is a ISO 8601 week number during that year (i.e., week 1 to 52/53).

⬓ We can use 2 other attributes to define the limit restrictions and step values.

❍ min
❍ max
❍ step
➎ month

⬒ Use this input type if requirement is to pick "month" and "year".

⬔ The value is a string whose value is in the format "YYYY-MM".

⬓ We can use 2 other attributes to define the limit restrictions and step values.

❍ min
❍ max
❍ step
⚠️ Warning ⚠️

⬘ The UI for all these input types varies from browser to browser.

⬗ Even few browsers still do not support these entirely.

⬙ Before using these, check for the browser compatibility.

⬖ As an alternative, you can use some external component library.
End of 🧵

Are you interested in Web Development? I am sharing contents regularly on HTML, CSS, JavaScript, React and Node.js.

To never miss any in future, Follow Me ✅

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Swapna Kumar Panda 

Swapna Kumar Panda  Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @swapnakpanda

Mar 4
50+ CSS Problems for Practice

Series: ➊
Level of Difficulty: Easy to Medium

Topics:
➊ CSS Selectors
➋ Background
➌ Border
➍ Margin
➎ Padding
➏ Outline
➐ Text
➑ Position
➒ Overflow
➓ Height/Width
💭 Intention behind this Practice Series

⬘ I believe anyone can strengthen his skills in HTML and CSS only by practicing.

⬗ In CSS, there are so many properties and values. It's impossible to memorize everything.

⬙ By practicing a lot, you can definitely master it.
Read 19 tweets
Mar 2
👩‍💻 HTML & CSS Topics

Learn these
❍ if you are into Web Development
❍ before starting JavaScript

❀ Back-End Developer

❑ You want to learn JavaScript for Node.js environment, you can directly start.

❒ It's not mandatory to have any prior knowledge of HTML & CSS.
❀ Front-End Developer

✔ You can learn basic JavaScript syntaxes even without knowing HTML & CSS.

✘ But you need to switch to HTML & CSS after a point. Then again switch back to JavaScript.

✔ So, I recommend learn HTML & CSS (basics) first and, then jump to JavaScript.
Read 12 tweets
Mar 1
When someone asks me, "How do you grow to 18K from 18 in just 180 days"

I reply: By following these 18 lessons.

🧵 👇
🚥 Disclaimer

⬒ I am not a Growth Expert. Views expressed here are my personal views.

⬔ I don't remember how many followers I had 180 days back.

⬓ None of my tweets are against anyone, any community or, any race. But if you feel attacked, I am really sorry. 🙏
Lesson ➊

Be unique. Have your own style.
Read 21 tweets
Feb 28
🌆 CSS Grid Layout : Properties & Values

Link to High Resolution image in the next tweet. To render contents in Grid layout effectively, there are var
🏙 High Resolution Image

⬒ If you liked this one, give a ⭐️ to this GitHub repo to support my work.

⬓ Direct Link:

github.com/swapnakpanda/I…
🚥 Disclaimer

I have compiled these information with all sincerity. But in case you find any omissions or, wrong representations, please inform me.
Read 4 tweets
Feb 27
10 Sorting Algorithms

⬒ Have you just started studying Data Structures and Algorithms?

⬓ Are you finding difficulties in understanding the sorting algorithms?

I will introduce you here to 10 different sorting algorithms by explaining each using simple terms.
📋 Table of Contents

➊ Bubble Sort
➋ Selection Sort
➌ Insertion Sort
➍ Merge Sort
➎ Quick Sort
➏ Counting Sort
➐ Radix Sort
➑ Bucket Sort
➒ Heap Sort
➓ Shell Sort
➒➑ Time Complexity
➒➒ Space Complexity
Read 18 tweets
Feb 26
🌍 Hello, World!

Your first program written in 30 Languages

❍ C
❍ C++
❍ Java
❍ C#
❍ HTML
❍ CSS
❍ JavaScript
❍ Python
❍ PHP
❍ PL/SQL

and, 20 others.
🏙 High Quality Infographics

⬘ I have created a repository in GitHub. This will contain most of the infographics I create in HD Quality.

⬖ To never miss any, add this repo to your "Watch" list.

⬙ To encourage me, give a ⭐️ to this repo.

Direct Link:
github.com/swapnakpanda/I…
📰 Read it in Hashnode

⬘ Find these code in all 30 languages and, read more in this Hashnode article.

⬙ Encourage me by giving reactions and your valuable feedbacks there.

swapnakpanda.hashnode.dev/hello-world
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(