# DateTime Add

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/date-functions/datetime-add
>
> DateTimeAdd adds seconds, minutes, hours, days or a time or date-time value to a date-time string in YYYYMMDDHHMISSCCC format.

This Function returns a _\<string>_, which is the date time resultant of the sum between the specified **Date Time** and **Value**.

### Parameters

* **Date Time** _\<string> -_ Date Time to add the **Value** to. This parameter must be in format YYYYMMDDHHMISSCCC.
* **Value Unit** _\<string> -_ Unit of **Value** to add to **Date Time**. The Possible values for this parameter are:
  * "S" - Second
  * "M" - Minute
  * "H" - Hour
  * "D" - Day
  * "HHMMSS" - Time
  * "DDHHMMSS" - Date Time
* **Value** _\<string> -_ Value to add to Date Time. The unit of this parameter depends on the Value Unit.

### **Examples**

* _Example 1_

DateTimeAdd("20100301091530000", "D", "1")\
**Result** = 20100302091530000

* _Example 2_

DateTimeAdd("20100301091530000", "HHMMSS", "010000")\
**Result** = 20100301101530
