Date and Time Mask, while inputting a date without a time
See original GitHub issueI have a date and time mask, the code is shown below:
$("#element").inputmask({
mask: "1/2/y h:s:s",
placeholder: "__/__/____ __:__:__",
alias: "datetime",
hourFormat: "24",
showMaskOnHover: false
});
Is there a way, that when the user inputs a date without a time, the time placeholder part (hh:mm:ss) is removed. In other words, I wish that the time portion is optional.
Thanks in advance.
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Date/time masks and format specifiers - IBM
When you declare a TIMESTAMP or INTERVAL variable, you can specify a mask to define the internal format of the variable. EGL carries...
Read more >Input mask for International Date/Time - Microsoft Community
This for a wage calculation program where the pay clerk enters date/time in the format YYYY-MM-DD HH:nn. To make it easier I tried...
Read more >Mask Type: DateTime | WinForms Controls
The DateTime mask type allows users to enter a date and/or time. DateTime masks support the Gregorian, Korean, Taiwanese, and Thai Buddhist calendars....
Read more >Masked Date-Time input without p:calendar - Stack Overflow
With an inputMask component, you can't easily validate the date format, and you have to parse ...
Read more >Microsoft Access 365 Lesson 2 - Date Input Mask vs Formatting
In this series of videos you will learn how to use the latest version of Microsoft Access as part of the Microsoft Office...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try with:
$(“#element”).inputmask({ mask: “1/2/y [h:s:s]”, placeholder: “//____ ::__”, alias: “datetime”, hourFormat: “24”, showMaskOnHover: false });
2014-09-18 9:52 GMT+02:00 jamezamm notifications@github.com:
Use the greedy: false option
2014-09-18 10:27 GMT+02:00 jamezamm notifications@github.com: