Dec 7, 2015, 8:29 AM
Post #6 of 7
The code you posted won't compile due to the missing semicolons on the assignment statements. Assuming that was simply a typo when posting, the next problem is that the "dates" aren't actually date strings due to the missing quotes. They are mathematical equations (12 divided by 4 divided by 2015) which is why they resulted in floats.
Re: [regex2012] date comparison by lt and gt
[In reply to]
Bulrush's solution assigns the dates as strings but uses a numerical operator when comparing them, which works in this case/context but not all.