<<<<<<< HEAD Code Wars - Brett Crafton

Is the date today

Question

Write a simple function that takes a Date as a parameter and returns a Boolean representing whether the date is today or not. Make sure that your function does not return a false positive by only checking the day.

No examples

Solution by -

My Solution


	function isToday(date) {
		return new Date().toDateString() == date.toDateString()
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Is the date today

Question

Write a simple function that takes a Date as a parameter and returns a Boolean representing whether the date is today or not. Make sure that your function does not return a false positive by only checking the day.

No examples

Solution by -

My Solution


	function isToday(date) {
		return new Date().toDateString() == date.toDateString()
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39