Cannot get the right date string format

Hi @Lori ,

Is this what you meant?
image

CDate("2023-01-03").AddMonths(-1).ToString("yyyy-MM-dd")

I think the issue is with using ToShortDateString.

Kind Regards,
Ashwin A.K