I have created a date picker. I take the date to be entered from another file, format is dd.MM.YYYY.
Using:
DateTime.ParseExact(StartDate,“dd.MM.yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd”)
I extracted only the day. Unfortunately, the date picker works only for two-digit date, as soon as the date is for example 03.07.2022, the date is not selected by bot because the inner text of the click field is only “3”. I also tried with:
DateTime.ParseExact(StartDate,“dd.MM.yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“d”)
but unfortunately this didn’t help either.
Can anyone help? Thanks in advance