W
W
weranda2016-04-05 16:00:16
JavaScript
weranda, 2016-04-05 16:00:16

How in this calendar to set the first day of the week to Monday, not Sunday?

Greetings

There is a seemingly simple script for a banal calendar, but I just can’t set it up as the first day of the week - Monday. Sunday and that's it. The current date is shifted one point to the right. How to set the date to be shifted one point to the left.

Here is an example on jsfiddle , but for some reason it doesn't work there. Apparently something is not configured correctly. But for a local test, you can copy and run locally. Embedding example in html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="style.css" rel="stylesheet">
    <script src="https://yandex.st/jquery/1.9.1/jquery.min.js"></script>
    <script src="dcalendar.picker.js"></script>

</head>
<body>

<table class="simple-calendar"></table>

<script>
    $('.simple-calendar').dcalendar();
</script>
    
</body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Kryvel, 2016-04-05
@weranda

And what day of the beginning of the week do you have set in the system? :)
ps doesn't work on jsfiddle because the js code needs to be inserted into the html code just before the function call.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question