
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
date-time-picker
Advanced tools
No Dependencies Lightweight Material Date/Time Picker For Mobile Web
date-time-picker.min.js: ~9k when gzipped
date-time-picker.min.css: ~2k when gzipped

Download from https://github.com/dolymood/date-time-picker/tree/master/dist, it contains minified js and css files.
Or use npm:
npm install date-time-picker
As a npm package:
var DateTimePicker = require('date-time-picker')
AMD:
var DateTimePicker = require('/path/to/date-time-picker.min.js')
Script load:
var DateTimePicker = window.DateTimePicker
btn.onclick = function () {
var datePicker = new DateTimePicker.Date(options, config)
datePicker.on('selected', function (formatDate, now) {
// formatData = 2016-10-19
// now = Date instance -> Wed Oct 19 2016 20:28:12 GMT+0800 (CST)
})
}
btn.onclick = function () {
var timePicker = new DateTimePicker.Time(options, config)
timePicker.on('selected', function (formatTime, now) {
// formatTime = 18:30
// now = Date instance -> Wed Oct 19 2016 18:30:13 GMT+0800 (CST)
})
}
API:
picker.show()
picker.hide()
picker.destroy()
Events:
picker
// click OK button
.on('selected', function (formatValue, now) {
console.log(formatValue, now)
})
// click CANCEL button
// also trigger `destroy` event
.on('canceled', function () {
console.log('canceled')
})
.on('destroy', function () {
console.log('destroy')
})
{
lang: 'EN', // default 'EN'. One of 'EN', 'zh-CN'
format: 'yyyy-MM-dd', // default 'yyyy-MM-dd'
default: '2016-10-19', // default `new Date()`. If `default` type is string, then it will be parsed to `Date` instance by `format` . Or it can be a `Date` instance
}
{
lang: 'EN', // default 'EN'
format: 'HH:mm', // default 'HH:mm'
default: '12:27', // default `new Date()`. If `default` type is string, then it will be parsed to `Date` instance by `format` . Or it can be a `Date` instance
minuteStep: 5 // default 5. Select minutes step
}
Default English(EN):
{
day: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
shortDay: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
MDW: 'D, MM-d',
YM: 'yyyy-M',
OK: 'OK',
CANCEL: 'CANCEL'
}
Default 中文(zh-CN):
{
day: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
shortDay: ['日', '一', '二', '三', '四', '五', '六'],
MDW: 'M月d日D',
YM: 'yyyy年M月',
OK: '确定',
CANCEL: '取消'
}
MIT
FAQs
No Dependencies Lightweight Material Date/Time Picker For Mobile Web
The npm package date-time-picker receives a total of 10 weekly downloads. As such, date-time-picker popularity was classified as not popular.
We found that date-time-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.