Skip to content

Commit 52b20ff

Browse files
author
ap8351
committed
fix variable declaration for date parse/format docs
1 parent 324ba93 commit 52b20ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)