Salesforce

AddDateTime (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

AddDateTime (Magic xpa 2.x)

Adds a time interval to a Datetime value, which is represented by Magic xpa Date and Time fields. The specified amount of years, months, days, hours, minutes, and seconds are added to the current value of Date and Time, and stored back into those two variables.

Syntax:

AddDateTime (Date, Time, years, months, days, hours, minutes, seconds)

Parameters:

Date and Time – A reference to the Date and Time Magic xpa variables.

Years – You can enter the number of years to be added to the Datetime value.

Months – You can enter the number of months to be added to the Datetime value.

Days – You can enter the number of days to be added to the Datetime value.

Hours – You can enter the number of hours to be added to the Datetime value.

Minutes – You can enter the number of minutes to be added to the Datetime value.

Seconds – You can enter the number of seconds to be added to the Datetime value.

Returns:

True if the function is successful or False if the function fails.

See also:

DifDateTime, AddDate, AddTime

How Do I Increment the Value of Date-Time Combined Variables?

The Online and Rich Client Samples projects (program DT06 and RDT06)

Reference
Attachment 
Attachment