Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SQLPredicate and date format #473
I had some problems using SQLPredicate with date... I checked the code (even if the available formats were clear in exception message), DateHelper.java and I have seen:
static final String timestampFormat = "yyyy-MM-dd hh:mm:ss.SSS";
Well, it lloks like a bug, assuming you're using SimpleDateFormatter of JDK. In the timestampFormat, you put hours with "hh" but there is nay possibility to force Am/pm marker.
Thanks a lot for support. CIAO
Forgive my stupidity, because I'm also new to this part.
Comments about your suggestions:
We should either add the 'a' to indicate am/pm or we should use HH to indicate that we want to have military hours (so 00..23).
And on the sqlDateFormat we probably want to use:
static final String sqlDateFormat = "yyyy-MM-dd";