Select to view content in your preferred language

How do I calculate a date field to show 12/31/ and the current year?

608
3
Jump to solution
10-31-2024 10:22 AM
neomapper
Frequent Contributor

How do I calculate a date field to show 12/31/ and a current year?

0 Kudos
1 Solution

Accepted Solutions
neomapper
Frequent Contributor

Thanks for the feedback!

Here is the working code snippets

neomapper_0-1730401013146.png

format-date(today(), '%Y')
concat(${cals_insp_year} ,'/', '12', '/', '31')

 

View solution in original post

0 Kudos
3 Replies
Ed_
by MVP Regular Contributor
MVP Regular Contributor

maybe the following might help 

How to pull the year from the Date type?

Question | Analyze | Visualize
abureaux
MVP Frequent Contributor

Everything you need to know on date/time in S123: Dates and Time in Survey123

 

abureaux_0-1730396040558.png

 

neomapper
Frequent Contributor

Thanks for the feedback!

Here is the working code snippets

neomapper_0-1730401013146.png

format-date(today(), '%Y')
concat(${cals_insp_year} ,'/', '12', '/', '31')

 

0 Kudos