stop comparing dates as strings, fixes #30

@twobraids r?