dio-v
9/26/2017 - 7:52 AM

Date in javascript

	var d = new Date();
	d.setDate(d.getDate() + ((7 - d.getDay()) % 7 ) % 7); //next or current sunday
	//d.setDate(d.getDate() + ((7 - d.getDay()) % 7 + 2) % 7); //next or current tuesday
	var options = { month: 'long', day: 'numeric' };
	console.log(d.toLocaleDateString('nl-NL', options));