---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the IsLeapYear component

# Use the IsLeapYear component {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Specify a year to find out whether it's a leap year by using the IsLeapYear component
in RPA Desktop Design Studio.

## Before you begin

Role required: none

## About this task

You can configure the properties for the IsLeapYear component. For more information about these properties, see [Properties of the DateTime components](https://www.servicenow.com/docs/XwPTGksvsdQfkQeIAb4uiA "Learn about the properties of the DateTime components in RPA Desktop Design Studio.").

## Procedure

1. In the Toolbox pane, navigate to UtilitiesDateTime.
2. Drag the IsLeapYear component to the Design surface.
3. Drag the Now component to the Design surface.
4. Drag the GetPart component to the Design surface.
5. To configure the input field, see [Configure port properties](https://www.servicenow.com/docs/d92L75lHSFmmidzeOPPgTw "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
6. Connect the data and control ports of the IsLeapYear component to the corresponding ports of the other components as described in the following table and image.  
   {#use-datetime-isleapyear__table_jnw_jn1_krb__entry__4}

   | Port Name | Port type | Data type | Purpose of connection |
   |-|-|-|-|
   | Year | Data In |   | Passes the year that you specify from a previously executed component. |
   | Return | Data Out |   | Returns True if the specified year is a leap year. Otherwise, it returns False. |
   [ ]

   {#use-datetime-isleapyear__table_jnw_jn1_krb}
7. **Optional:** To test the component, under the DESIGN tab, click Run.  
   GetPart component extracts a date part from the Now component, and IsLeapYear determines if the year is a leap year.

## IsLeapYear component with GetPart and Now component {#use-datetime-isleapyear__example_jfk_y22_ggc}

Figure 1. IsLeapYear component

*[\>]: and then


