how to implement a date field in my forms using the form API. I actually wanted a date popup field. I have use this code
$form['dob'] = array( '#type' => 'date_popup', '#title' => t('DOB'), '#date_format' => 'Y-m-d', '#date_year_range' => '-100:+0', );
but it does not work..