Sid, According to the error that i am seeing there, this is the Date Format issue.
Text '5/1/2019 1:02:16' could not be parsed But your time format is specific as such 'M/dd/yyyy H:mm:ss') You can see that the day specific is /1/ but your format is dd which expects two digits. Please try the following format and let us know 'M/d/yyyy H:mm:ss' On Mon, 30 May 2022 at 11:05, Sid <flinkbyhe...@gmail.com> wrote: > Hi Team, > > I am able to convert to timestamp. However, when I try to filter out the > records based on a specific value it gives an error as mentioned in the > post. Could you please help me with this? > > > https://stackoverflow.com/questions/72422897/unable-to-format-timestamp-in-pyspark/72423394#72423394 > > > Best Regards, > Sid >