# Subtract Days

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/date-functions/subtract-days
>
> SubDays subtracts a number of days from a date in YYYYMMDD format and returns the resulting date as a string.

This Function returns a _\<string>_, which is the date resultant of the subtraction from the specified **Source Date** of the **Days to Subtract**.

### Parameters

* **Source Date** _\<string> -_ Date to subtract the **Days to Subtract** from. This parameter must be in format YYYYMMDD.
* **Days to Subtract** _\<numeric> -_ Days to subtract from the Source Date.

### **Examples**

* _Example 1_

SubDays("20210307", 6)\
**Result** = 20210301
