from pyspark.sql.functions import current_date, datediff, unix_timestamp
df_casted.where(datediff(current_date(), col('dt')) < 7)
PySpark: filtering a DataFrame by date field in range where date is string