snowflake.snowpark.functions.try_to_timestamp¶
- snowflake.snowpark.functions.try_to_timestamp(e: Union[Column, str], fmt: Optional[Union[Column, str]] = None) Column[source]¶
A special version of TO_TIMESTAMP that returns NULL instead of raising an error if the conversion cannot be performed. Snowflake’s TRY_TO_TIMESTAMP only accepts string input. The format has to be specified according to the rules set forth in <https://docs.snowflake.com/en/sql-reference/functions-conversion#date-and-time-formats-in-conversion-functions>
Example: