Converts the specified object to Date type according to the following: Tip:

You may call this function in a more method-like style:

obj.toDate()