I have installed Date Picker Module and it works fine.
Below is the code:
$form['date'] = array( '#title' => t('Select your birthdate'), '#type' => 'datepicker', '#date_format' => 'd/m/Y', '#date_year_range' => '-100:+0', '#default_value' => date("Y-m-d H:i:s", time()), );
I want to display not it inline. I want it to be a textfield and when the focus is on the textfield, the calendar will pop-up. What configuration should I tweak to make it possible? Thanks.