pyspark.sql.functions.current_date#
- pyspark.sql.functions.current_date()[source]#
- Returns the current date at the start of query evaluation as a - DateTypecolumn. All calls of current_date within the same query return the same value.- New in version 1.5.0. - Changed in version 3.4.0: Supports Spark Connect. - Returns
- Column
- current date. 
 
 - See also - Examples - >>> from pyspark.sql import functions as sf >>> spark.range(1).select(sf.current_date()).show() +--------------+ |current_date()| +--------------+ | 2022-08-26| +--------------+