Is it a good way to determine that is it a Date object or not?