Dates DATEPICKER REMOVED IN STAT 2.* + Add to individual projects as needed. Prefer default browser chrome picker TODO: Update docs for other date functions Use type="date" Now supported in Firefox 57, Chrome and other mobile browsers Browser 'built-in' Date Pickers Date (type="date") Browser 'built-in' TIME Pickers Time (type="time") Toggle All Date Fields with existing Value Toggle Dates for storage @returns string .value [YYYY-MM-DD (ISO_8601) or MM/DD/YYYY] stat.date.toggleAll() input type="date" is supported in this browser so this example will not work Date stat.date.toggleAll() Submit Convert Date Format Convert Dates for storage stat.date.convert(date, fmt) @returns string [YYYY-MM-DD to MM/DD/YYYY or vice-versa] Date stat.date.convert(date, YYYY-MM-DD) stat.date.convert(date, MM/DD/YYYY) Submit Set Pattern Apply HTML5 Pattern Validation to Date Fields, best for non-datepicker browsers stat.date.applyPattern(selector, pattern, placeholder) @param selector Object @param pattern String @param placeholder Bool @returns setAttribute(s) to specified selector input type="date" is supported in this browser so this example will not work but should be added for older browsers <input type="date" data-date="YYYY-MM-DD"> Date YYYY-MM-DD <input type="date" data-date="MM/DD/YYYY"> Date MM/DD/YYYY Submit