Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

Data Type Formatting Functions

Data type formatting functions provide an easy way to convert values from one data type to another. For each of these functions, the first argument is always the value to be formatted and the second argument contains the template for the new format. Amazon Redshift supports several data type formatting functions.