Skip to content

Instantly share code, notes, and snippets.

@shivenigma
Created April 20, 2015 09:52
Show Gist options
  • Save shivenigma/c22dd5b456ac68a4d49f to your computer and use it in GitHub Desktop.
Save shivenigma/c22dd5b456ac68a4d49f to your computer and use it in GitHub Desktop.
cheking whether the given objects are valid date objects in javascript
if(Object.prototype.toString.call(ref.leave.fromDate) === "[object Date]"
&& Object.prototype.toString.call(ref.leave.toDate) === "[object Date]")
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment