I want date in specific format

Hi @SSD

Is your variable already in DateTime format?

If the data type is already in DateTime, this error would occur:


image

The Solution, Change the code to:

Convert.ToDateTime(CurrentRow("Date")).ToString("dd-MMM-yy")

I hope this solves your issue, if so do mark it as solution
Thank You
Happy Automation :star_struck: