https://github.com/derhuerst/date-prompt
A CLI date picker prompt.
https://github.com/derhuerst/date-prompt
cli prompt
Last synced: 11 months ago
JSON representation
A CLI date picker prompt.
- Host: GitHub
- URL: https://github.com/derhuerst/date-prompt
- Owner: derhuerst
- License: isc
- Created: 2015-09-10T23:25:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T16:20:41.000Z (about 6 years ago)
- Last Synced: 2025-07-20T19:05:57.881Z (11 months ago)
- Topics: cli, prompt
- Language: JavaScript
- Homepage: https://github.com/derhuerst/date-prompt
- Size: 32.2 KB
- Stars: 19
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# date-prompt 📅
**A CLI prompt to ask for date & time.**
[](https://asciinema.org/a/26269)
[](https://www.npmjs.com/package/date-prompt)


## Installing
```shell
npm install date-prompt
```
## Usage
```js
const datePrompt = require('date-prompt')
datePrompt('When is your birthday?')
.then(isoStr => console.log('Submitted with', isoStr))
.catch(isoStr => console.log('Aborted with', isoStr))
```
## Related
- [`enquirer`](https://github.com/enquirer/enquirer) – Stylish, intuitive and user-friendly prompts.
- [`mail-prompt`](https://github.com/derhuerst/mail-prompt)
- [`range-prompt`](https://github.com/derhuerst/range-prompt)
- [`tree-select-prompt`](https://github.com/derhuerst/tree-select-prompt)
- [`cli-autocomplete`](https://github.com/derhuerst/cli-autocomplete)
## Contributing
If you have a question or need support using `date-prompt`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/date-prompt/issues).