QueryDSL - select rows with date from timestamp column -


using querydsl - there way select rows date timestamp other using .between? query:

where convert(date, mytimestamp) = '2013-02-28'

you can either use between or custom expression if use querydsl sql

something this

dateexpression<date> converted = datetemplate.create(date.class, "convert(date, {0})", mytimestamp); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -