dim fromDate as new date (2007, 4, 15)
"select * from accounting where SUBSTR(date,7,4) || '-' || SUBSTR(date,4,2) || '-' || SUBSTR(date,1,2) as cvDate > '"+fromDate.SQLDate+"' as cvDate"
btw, this one works:
"select * from accounting where julianday(SUBSTR(date,7,4) || '-' || SUBSTR(date,4,2) || '-' || SUBSTR(date,1,2)) > julianday('2007-01-01')"
julianDay is mainly useful to calculate the number of days between two dates. In your request, it is not necessary.
But frankly, it does not seem a good idea to use SUBSTR everytime in your requests. It is better to change all your dates in the database once and for all. It is during the display of the date that you adapt to the user.
Biggest issue is depending on how excel is set up it might be mm/dd/yyyy, dd/mm/yyyy or any one of many other possible formats
If this is imported from an Excel spreadsheet that is exported as csv or tab delimited it has no indication which
Importing will need to ask the user