Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How do add or hours and minutes CurrentDate()

Forum

Search UsersRules
How do add or hours and minutes CurrentDate()
#1
Just came
Points:: 0
Joined:: Sep 29, 2016

How do I add or hours and minutes CurrentDate()

AddMonth(CurrentDate(),1);

AddHours()=?

Profile
#2
Active user
Points:: 0
Joined:: Apr 18, 2012

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;

Profile
#3
Just came
Points:: 0
Joined:: Sep 29, 2016

thank you so much

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



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.