Skip to content

Commit

Permalink
Merge pull request #1023 from MysterieDev/fix-docs-date-example-forma…
Browse files Browse the repository at this point in the history
…t-parse

fix variable declaration for date parse/format docs
  • Loading branch information
uNmAnNeR committed Apr 10, 2024
2 parents 324ba93 + 52b20ff commit 126ad2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide.html
Expand Up @@ -901,8 +901,8 @@ <h3 id="masked-date" class="section-h"><a href="#masked-date">Date Mask</a></h3>

// define date -> str convertion
format: date => {
const day = date.getDate();
const month = date.getMonth() + 1;
let day = date.getDate();
let month = date.getMonth() + 1;
const year = date.getFullYear();

if (day < 10) day = "0" + day;
Expand Down

0 comments on commit 126ad2a

Please sign in to comment.