Spring '20 (API version 48.0)
Newer Version Available
This function is identical to date_to_string().
Note
This function must take a toDate() or now() function as its first argument.
1q = foreach q generate toString(now(), "yyyy-MM-dd HH:mm:ss") as ds1;