check the constructor property to find out if an object is a Date (contains the word "Date"):
By Marjorie Wyman at Jun 29 2021