Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change start of week to Monday #64

Open
shadowempire123 opened this issue Feb 27, 2023 · 1 comment
Open

Change start of week to Monday #64

shadowempire123 opened this issue Feb 27, 2023 · 1 comment

Comments

@shadowempire123
Copy link

Hi,
any possibility to change the start of week from Sunday to Monday?
thx

@shadowempire123
Copy link
Author

shadowempire123 commented Feb 27, 2023

Funny that ai.com tells following answer which sound logically but is not working:

To change the start of the week from Sunday to Monday in the @beyonk/svelte-datepicker component, you can use the "firstDay" prop. This prop accepts a number representing the index of the first day of the week, where 0 represents Sunday, 1 represents Monday, and so on.

Here's an example code snippet that sets the first day of the week to Monday:

<script>
  import { DatePicker } from '@beyonk/svelte-datepicker';
</script>

<DatePicker firstDay="1" />

By setting the "firstDay" prop to 1, you are telling the component to use Monday as the first day of the week.

-->
<DatePicker> was created with unknown prop 'firstDay'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant