Skip to content

Commit 126ad2a

Browse files
authored
Merge pull request #1023 from MysterieDev/fix-docs-date-example-format-parse
fix variable declaration for date parse/format docs
2 parents 324ba93 + 52b20ff commit 126ad2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ <h3 id="masked-date" class="section-h"><a href="#masked-date">Date Mask</a></h3>
901901

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

908908
if (day < 10) day = "0" + day;

0 commit comments

Comments
 (0)