Updated the toDateObject Example with timezone support