Hi,
Still new with Delphi and experimenting with the datepicker component. I have two datepickers on the form and I would like to calculate the days between the 2 selected dates on the daypicker.I found the functions dayspan and daysbetween that work with a TDatetime. I tried to use it with the dates from the datepicker but didn't work. How do you use these functions for what I am trying to do?
I also searched for a function that will automatically return the date of the next day of a given date. Does it exist or can anyone explain how to do this in Delphi?
Kind regards,
Raoul
ah, also wondered if it is possible to replace that red circle that highlights today's date in the datepicker for something else (perhaps something similar as the way the selected date is highlighted but then another color or so)?
Still new with Delphi and experimenting with the datepicker component. I have two datepickers on the form and I would like to calculate the days between the 2 selected dates on the daypicker.I found the functions dayspan and daysbetween that work with a TDatetime. I tried to use it with the dates from the datepicker but didn't work. How do you use these functions for what I am trying to do?
I also searched for a function that will automatically return the date of the next day of a given date. Does it exist or can anyone explain how to do this in Delphi?
Kind regards,
Raoul
ah, also wondered if it is possible to replace that red circle that highlights today's date in the datepicker for something else (perhaps something similar as the way the selected date is highlighted but then another color or so)?