Select to view content in your preferred language

Arcade Date Functions and Leap Years

782
2
Jump to solution
01-13-2023 09:20 AM
GIS_Fox
Frequent Contributor

Hi All,

I was curious if Arcade date functions are flexible enough to recognize when a leap year is present/active with code returning today or this month code lines without the need of leap year/common year conversions? 2023 is a common year and 2024 will be a leap year. I wanted to have a good head start before a leap year to prepare my code either for adjustments or test them in the playground on the developers site. All these code lines and parameters will be within a Dashboard environment returning indicators for values based on dates and times.

Thanks,

 

Jansen Lyons - Records and GIS Section - Public Works - City of Rio Rancho, NM
0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

It considers the leap year.

I just did a simple test for you.

Google Result gave me the number of days until Feb 29, 2024 = 412 days

JayantaPoddar_0-1673632001488.png

Added same no. of days in Arcade from today resulting in February 29, 2024.

JayantaPoddar_1-1673632075029.png

 



Think Location

View solution in original post

2 Replies
JayantaPoddar
MVP Esteemed Contributor

It considers the leap year.

I just did a simple test for you.

Google Result gave me the number of days until Feb 29, 2024 = 412 days

JayantaPoddar_0-1673632001488.png

Added same no. of days in Arcade from today resulting in February 29, 2024.

JayantaPoddar_1-1673632075029.png

 



Think Location
GIS_Fox
Frequent Contributor

Hi @JayantaPoddar , awesome, thank you for the quick and detailed response. 

Jansen Lyons - Records and GIS Section - Public Works - City of Rio Rancho, NM
0 Kudos