Hi guys,
I'm looking for a way to get today's date in delphi and then calculate the date 7 days ago from it.
I then want to search through a TQuery using SQL to find any records which have a date field older than 7 days.
The SQL seems simple enough...but can someone tell me the simplest way of getting the date in delphi and manipulating it?
cheers..
I'm looking for a way to get today's date in delphi and then calculate the date 7 days ago from it.
I then want to search through a TQuery using SQL to find any records which have a date field older than 7 days.
The SQL seems simple enough...but can someone tell me the simplest way of getting the date in delphi and manipulating it?
cheers..