---
schema_version: "1"
id: cdf9d59d5fe78be208aa38ddc0236a84aa6ad222bf1cce9158ccf08048befe9f
title: GetDurationDateRange
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/financial_services_cloud_object_reference/apex_fsccashflow_getdurationdaterange.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/apex_fsccashflow_getdurationdaterange.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8143f0e56a6bf5ed87ed7c4a0c7cdcae1ab3b09a63ae0cdd24d09559a3319500
description: Returns the start and end date given a duration.For example, if you input the number 3 on the date 10/29/2024, it will return a start date of 7/1/2024 and an end date of 10/1/2024.
---
# GetDurationDateRange

Returns the start and end date given a duration.For example, if you input the number 3 on the date 10/29/2024, it will return a start date of 7/1/2024 and an end date of 10/1/2024.

## Signature

call(String action, Map<String, Object\> args

## Return Value

Returns the start and end date for a specified duration.

## Examples

Output JSON example of the actions are as follows.

Output format:

{
          "DurationStartDate": "2024-02-02T00:00:00.000Z",
          "DurationEndDate": "2024-05-02T00:00:00.000Z"
        }