Welcome Guest, Not a member yet? Register   Sign In
help with Date functions
#7

[eluser]Michael Wales[/eluser]
What database are you running, what version? There are a ton of solutions to this, clearly available on Google.

MySQL >= 5.0, BETWEEN works fine - make sure you CAST() to a common datatype if they are not the same. Any other version/database, do a little logically thinking...

Code:
theDate BETWEEN lowDate AND highDate
sounds a lot like
Code:
lowDate < theDate < highDate


Messages In This Thread
help with Date functions - by El Forum - 07-07-2009, 12:51 AM
help with Date functions - by El Forum - 07-07-2009, 12:58 AM
help with Date functions - by El Forum - 07-07-2009, 01:02 AM
help with Date functions - by El Forum - 07-07-2009, 01:27 AM
help with Date functions - by El Forum - 07-07-2009, 01:54 AM
help with Date functions - by El Forum - 07-07-2009, 05:50 AM
help with Date functions - by El Forum - 07-07-2009, 06:57 AM
help with Date functions - by El Forum - 07-07-2009, 10:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB