Hi,
How could I get the current DateTime from the database server, using NHibernate?
I tried to use the current_date expression, but it doesn't seem to work outside the where clause. What I need is something like SELECT getdate()
. This query in SQL server gets de current datetime from the server, I just don't know how to put it in HQL dialect.
Thanks