Datetime string in HQL
I am using Castle ActiveRecord for my application. My 开发者_运维知识库problem is how to use a datetime string in HQL like this (without using parameters):
"from Contact c where c.DayOfBirth = '5/3/1988'"
Try using YYYY-MM-DD format:
from Contact c where c.DayOfBirth = '1988-05-03'
精彩评论