how to get the current date in pyspark with example

In this Post, We will learn to get the current date  in pyspark with example  Getting current date Following lines help to get the current date and time . import findspark from pyspark.sql import Row from pyspark import SparkContext , SparkConf import datetime now = datetime.datetime.now() #Getting Current date and time print (now.strftime("%Y-%m-%d %H:%M:%S")) Output … Continue reading how to get the current date in pyspark with example