javascript check object type date

 

 

 

 

Create another new Date object (which defaults to the current date/time) and compare the two. See example. Sep 17 08 2.