My colleague highlighted interesting bug: when using .ToString(“d”) it returns the whole date, not a day without leading zero. Let’s say the date in now variable is the 27th of April, 2023. So we expect "now.ToString(“d”) to return “27”, when it actually returns “04/27/2023”.
Bug is also mentioned here: I want to take date as 1 instead of 01 please help - #14 by keTan
The workaround proposed in that topic was to use .Day.ToString()
I’ve found out that you may also use .ToString(“%d”)