Dec 10, 2003 #1 GCTIberica Programmer Joined Jun 20, 2003 Messages 30 Location ES Hi Does anyone know of an easy way to find the date of the previous day? Thanks
Dec 10, 2003 #2 LucieLastic Programmer Joined May 9, 2001 Messages 1,694 Location GB hi Have you tried? (1 = a day) var PreviousDate, CurrentDate : TDateTime; PreviousDate := CurrentDate - 1 If you want to get the previous business day, you need to check for Saturday and Sundays. lou Upvote 0 Downvote
hi Have you tried? (1 = a day) var PreviousDate, CurrentDate : TDateTime; PreviousDate := CurrentDate - 1 If you want to get the previous business day, you need to check for Saturday and Sundays. lou
Dec 15, 2003 Thread starter #3 GCTIberica Programmer Joined Jun 20, 2003 Messages 30 Location ES Thanks very much I was using TDate instead of TDateTime and thats why I couldnt get it working thanks Upvote 0 Downvote
Thanks very much I was using TDate instead of TDateTime and thats why I couldnt get it working thanks