# I need to validate date strings input with keyboard

**URL:** <https://forum.kirupa.com/t/i-need-to-validate-date-strings-input-with-keyboard/154801>\
**Category:** flash\
**Created:** [July 12, 2005, 8:59pm UTC](https://forum.kirupa.com/t/i-need-to-validate-date-strings-input-with-keyboard/154801 "2005-07-12T20:59:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragonfly](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Post date:** [July 12, 2005, 8:59pm UTC](https://forum.kirupa.com/t/i-need-to-validate-date-strings-input-with-keyboard/154801/1 "2005-07-12T20:59:50Z")

</div>

I’m working on a project where a user inputs date via a touchscreen keyboard into a database. We have to work with the clients database as is, and there is a strict datatype requirement for the date. The date has to exist on the calender ie. 2-29-04 works but 2-29-05 does not (leap year).

Now, I know how to make a calendar/event schedule with the date object, and do have the option of just ploping a calendar in front of them to navigate through and select a valid date, and this seems like the best idea right now. However, I would like to know if anyone has just validated user input dates via keyboard into a field, so I could just keep the keyboard up there for them, instead of switching the interface around so much.

Thanks for any help.
