Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

What is the difference between Inyear and Inyeartodate.

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Try these two expression

=InYear(MakeDate(2018, 12, 31), Today(),0)

=InYearToDate(MakeDate(2018, 12, 31), Today(),0)

Since, 31st Dec 2018 is in 2018, it will show as -1 (TRUE) for InYear, but it is not between year start and today, it will show 0 for InYearToDate

View solution in original post

3 Replies
sunny_talwar

Try these two expression

=InYear(MakeDate(2018, 12, 31), Today(),0)

=InYearToDate(MakeDate(2018, 12, 31), Today(),0)

Since, 31st Dec 2018 is in 2018, it will show as -1 (TRUE) for InYear, but it is not between year start and today, it will show 0 for InYearToDate

jolivares
Specialist
Specialist

Tomorrow is true for InYear, but not for InYearToDate.  Likewise, Today() is true for both.