Converts a date in string format to a DateOnly type. format specifies the date format and can be any valid date format.
note: You can only use this function when the time zone feature is enabled. If the time zone feature is disabled, use the toDate() function.
q = foreach q generate toDateOnly('CloseDate',"yyyy/MM/dd") as DateTime;