Hello everybody.
When I select the last day of the month from the Calendar control, I get the first day instead of the last.
Is it a bug or am I missing something?
This is the code I use to get the date selected:
txtDate.Text := FormatDateTime('dd/mm/yyyy',MonthCalendar.DateTime);
In the code above, txtDate is an EditBox while MonthCalendar is the Calendar control.
Please notice that the problem only occurs when you select the last day of each month. Any other date is returned correctly.
Any help will be appreciated.