--- title: Use the GetPart component description: Get the value of a part of the date format by using the GetPart component in RPA Desktop Design Studio. For example, you might want to get the value of the month in the MM/DD/YYYY format. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/use-datetime-getpart.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [DateTime, Utilities, Automation components, RPA Desktop Design Studio, Robotic Process Automation \(RPA\) Hub, Workflow Data Fabric] --- # Use the GetPart component Get the value of a part of the date format by using the GetPart component in RPA Desktop Design Studio. For example, you might want to get the value of the month in the MM/DD/YYYY format. ## Before you begin Role required: none ## About this task You can configure the properties for the GetPart component. For more information about these properties, see [Properties of the DateTime components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/util-datetime-prop.md). ## Procedure 1. In the Toolbox pane, navigate to **Utilities** > **DateTime**. 2. Drag the GetPart component to the Design surface. 3. To configure the input fields, see [Configure port properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-input-port-properties.md). 4. Connect the data and control ports of the GetPart component to the corresponding ports of the other components as described in the following table.
| Port name | Purpose of connection | Port type | Data type |
|---|---|---|---|
| SourceDate | Passes the date and time for which you want to view the part, from a previously executed component.Drag the Now component from DateTime to get today's date as the source date. For example, if the source date is 01-Feb-2025. | Data In | DateTime |
| Format | Passes the part of the date and format that the value of which is returned, from a previously executed component.For example, enter `MMM`. | Data In | String |
| Return | Returns the value of the part of the date format.If the format is MMM, the output is Feb. | Data Out | String |