database - how to format date in "YYYY-mm-dd" format using hql? -


when use ms sql database, convert date in timestamp "yyyy-mm-dd" format.

convert(date, "timestamp") 

i need same function using hql.

which function remove time indices , give date in "yyyy-mm-dd" format?

you use following converts date string specified format

to_char(mydate,'yyyy-mm-dd') 

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -