Created
June 12, 2015 12:35
-
-
Save edivandecastro/ece19de871b56fb61f55 to your computer and use it in GitHub Desktop.
get-first-and-last-date-of-current-month-with-javascript-or-jquery
This file contains hidden or 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
var date = new Date(); | |
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1); | |
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment