Skip to content

Commit

Permalink
fix variable declaration for date parse/format docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ap8351 committed Apr 10, 2024
1 parent 324ba93 commit 52b20ff
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 52b20ff

Please sign in to comment.