title: How to convert string with a specific date format like 'mm/dd/yy' to date object in hibernate query
body: <p>One of the columns my_column in my table is of type varchar where i store value of date in string. The format is <code>'MM/DD/YY'</code>. I want to use cast function of hibernate to convert this column value to date. But it appears that the cast function accepts string of <code>'yy-mm-dd'</code> format to convert. Is it possible to use cast for string with specific date format for conversion. Something like this: <code>cast(am.my_column as date format 'mm/dd/yy')</code> </p>
  
  <p>cast function in hibernate is used this way: cast(am.my_column as date).
  My use case is basically converting the column value from string to date and making a date comparison.  <code>cast(am.my_column as date format 'mm/dd/yy') &gt; '12/30/2017'</code></p>