How do add or hours and minutes CurrentDate()

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
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:1Yes/0No
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:0Yes/0No
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)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.