abecoffman/birthdaypicker — Issue #6: accessing the hidden date
Author: lookfirst
Created: 2011-11-28 23:52:01+00:00
State: open

I just realized that it would be really awesome if I could more easily access the hidden date from within the birthdaypicker instance itself instead of having to select the data from the hidden input field.

bdaypicker = $('foo').birthdaypicker(options)

Date date = bdapypicker.getDate()

and/or:

date = bdapypicker.getDateString()
date is then in: 'yyyy-mm-dd' format (or whatever the date format is from the options)