Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript date first day of current month

var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
Comment

javascript first and last day of the month

var date = new Date(), y = date.getFullYear(), m = date.getMonth();
var firstDay = new Date(y, m, 1);
var lastDay = new Date(y, m + 1, 0);
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript function generate a random string 
Javascript :: javascript convert string to lowercase 
Javascript :: javascript scroll to top of page 
Javascript :: city regex pattern 
Javascript :: javascript run something after x seconds 
Javascript :: access angular app outside localhost 
Javascript :: javascript get current url 
Javascript :: jquery add contenteditable="true" 
Javascript :: jquery on enter key pressed 
Javascript :: javascript change url without redirect 
Javascript :: javascript convert string to 2 decimal 
Javascript :: js scroll to id 
Javascript :: js get element window offset top 
Javascript :: js 1 second delay 
Javascript :: javascript window resize event 
Javascript :: Remove style attribute from div with jquery 
Javascript :: read file node 
Javascript :: regex for number and letters 
Javascript :: generate random character in javascript 
Javascript :: disable right click jquery 
Javascript :: Storing Objects in HTML5 localStorage 
Javascript :: vanilla js delete element 
Javascript :: disable right click 
Javascript :: react native view background transparency 
Javascript :: npx create-react-app 
Javascript :: Appium find Android element by Id using Javascript 
Javascript :: Unable to resolve module react-navigation 
Javascript :: javascript get random number in range 
Javascript :: how to use jquery in chrome dev tools 
Javascript :: jquery datepicker no past dates 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =