get current date in pyspark sql

Solutions on MaxInterview for get current date in pyspark sql by the best coders in the world

showing results for - "get current date in pyspark sql"
Renata
24 Feb 2018
1%pyspark
2
3from pyspark.sql.functions import current_date
4df1 = df.withColumn("current_date",current_date())
5
6#Where df1 is that dataset you want to add the current date to.