Developer forum

Forum » CMS - Standard features » Is it possible to set a DateTime.Now.AddHours(1) to a query

Is it possible to set a DateTime.Now.AddHours(1) to a query

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

Due to the time differrence on the server (CET) and local time (GMT), i want to add an hour to the less than or equal query (See attachment)

Is this possible?

Br.

Hans

Skærmbillede_2018-06-06_kl._09.37.28.png

Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Hans,

 

In 9.4 you can https://www.screencast.com/t/vMArXHTb . Not sure how far back it does.

 

Best Regards,

Nuno Aguiar

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi Nuno

Thanx :) Have tried configuring it, and now It says Today-1 - Hope that this means DateTime.Now.AddHours(-1)

Br, Hans

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Hans,

 

Glad I could help. At least in DW9 you have the interval to determine hours, days, weeks. If it's not the right unit you can always do  something like -24 (if hours) 

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum