pyspark.sql.functions.
date_add
Returns the date that is days days after start
New in version 1.5.0.
Examples
>>> df = spark.createDataFrame([('2015-04-08',)], ['dt']) >>> df.select(date_add(df.dt, 1).alias('next_date')).collect() [Row(next_date=datetime.date(2015, 4, 9))]
previous
pyspark.sql.functions.current_timestamp
next
pyspark.sql.functions.date_format