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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -