I have some simple filtering that I would like to do by date. I’m
currently running against MySQL, but will likely be running this app. in
production against Oracle.
Currently, I have a condition like the following set up:
which forces the # of days ago into a default MySQL date formatted
string for comparison with the MySQL date.
However, this implicitly binds me to MySQL’s concept of a default date
format, and it is probably different for Oracle.
Is there any way to get around the specificity of the date format in
order to be able to move to another DB without modifying the code?
Even if I use a date function to calculate a value that can be compared
to what is in my app., that would also almost certainly be DB specific
function, so I would have the same problem.