Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot to use date limit? #14

Open
ader2046 opened this issue May 22, 2017 · 2 comments
Open

Hot to use date limit? #14

ader2046 opened this issue May 22, 2017 · 2 comments

Comments

@ader2046
Copy link

hi, i want to use date limit query such as createTime>='2017.05.14', when i use it, they always to display following error, the "createTime" is date formate in mongodb.
Failed to convert from type java.lang.String to type java.util.Date for value '2017-05-14'; nested exception is java.lang.IllegalArgumentException

this is our code:
QueryConversionPipeline pipeline = QueryConversionPipeline .defaultPipeline(); Condition<GeneralQueryBuilder> condition = pipeline.apply( fiqlExpression, SubjectKnowledge.class); Criteria criteria = condition.query(new MongoVisitor()); query = new Query(criteria);

How should i do now.

Thanks

@alabotski
Copy link

Hello I also have such question

@fred01
Copy link

fred01 commented Sep 2, 2019

I think you should use custom ArgConverter to convert your string date to Date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants