Hello, I need to type into a date field in “mm/dd/yyyy” format. I use:
GLdate = New datetime(now.Date.Year, now.Date.Month,1).AddDays(-1) where GLdate is a DateTime type.
this gave correct result of 10/31/2021 00:00:00
I use another assign
GLdateStr = GLdate.tostring(“mm/dd/yyyy”) but this gave 00/31/2021, please how to fix this?