Sign up to Knack for Free - Affiliate Link
This Sunday, I wanted to share a quick and handy tip for changing the start day of your calendar in Knack from Sunday to Monday.
While you can easily adjust the calendar component to start on Monday, date fields default to Sunday. To change this, simply add a single line of JavaScript. Modify the variable where Sunday is zero and Monday is one, save your changes, and refresh your app. Now, all date fields will start on a Monday!
Add to JavaScript
// Set the default first day of the week for jQuery UI Datepicker to Monday (1).
$.datepicker.setDefaults({ firstDay: 1 });
Commentaires