Created
July 10, 2018 19:30
-
-
Save jasp402/4bc509160ddcad1673170626c39838d4 to your computer and use it in GitHub Desktop.
rawFulYearMonth()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let month = ('0' + (new Date().getMonth() + 1)).slice(-2); | |
let year = new Date().getFullYear(); | |
let lastMonth = (month - 1) + '/01/' + year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment