snowflake.snowpark.functions.dayofweek¶ snowflake.snowpark.functions.dayofweek(e: ColumnOrName) → Column[source]¶ Extracts the corresponding day (number) of the week from a date or timestamp. Example::CopyExpand>>> import datetime >>> df = session.create_dataframe( ... [[datetime.datetime.strptime("2020-05-01 13:11:20.000", "%Y-%m-%d %H:%M:%S.%f")]], ... schema=["a"], ... ) >>> df.select(dayofweek("a")).collect() [Row(DAYOFWEEK("A")=5)] Show lessSee moreScroll to top