mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

How to use initialDate #67

Closed salchris closed 7 years ago

salchris commented 7 years ago

Hi, first Thank you for your work.. than, i don't know how to use initial date as i aways get this error

g.getMinutes is not a function

$("#birth").calendar({type: 'date',initialDate:'01/01/1990'})

What i'm doing wrong? Thank you

mdehoog commented 7 years ago

initialDate expects a Javascript date. The initialDate setting is the date highlighted when the popup is first displayed. If you want to set the date shown in the input field, using the set date method, or simply set the input's value.