The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Just came
Rating: 1
Joined: Sep 29, 2016
Company: ELPO BILISIM OTOMASYON ELEKTRONIK LTD.

How do I add or hours and minutes CurrentDate()

AddMonth(CurrentDate(),1);

AddHours()=?

 
#2
People who like this: 1 Yes / 0 No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Hi, Mehmet!

You can add seconds to date, so if you want to add minutes you must multiply by 60, for hours - multiply by 3600.

Code
PlusTenMinutes = CurrentDate() + 10 * 60;
PlusFourHours = CurrentDate() + 4 * 3600;

 
#3
People who like this: 0 Yes / 0 No
Just came
Rating: 1
Joined: Sep 29, 2016
Company: ELPO BILISIM OTOMASYON ELEKTRONIK LTD.

thank you so much

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)