Check out example codes for "get current date in pyspark sql". It will help you in understanding the concepts better.

Code Example 1

%pyspark

from pyspark.sql.functions import current_date
df1 = df.withColumn("current_date",current_date())

#Where df1 is that dataset you want to add the current date to.

Learn ReactJs, React Native from akashmittal.com