0 Votes

Relevance to determine if today is the last Sunday of the month
Log In or Register to download the BES file, and more.


Relevance

 
  * Results in a true/false
Show indented relevance
if (month of ((first Sunday of (((month of it) & (year of it)) of current date)) + 28*day) = month of current date) then (((first Sunday of (((month of it) & (year of it)) of current date)) + 28*day) = current date) else (((first Sunday of (((month of it) & (year of it)) of current date)) + 21*day) = current date)

Property Details

ID3019787
Status
TitleRelevance to determine if today is the last Sunday of the month
Keywords#last sunday
DescriptionThe can be used in a fixlet to run if it is the last Sunday of the month, or can be extrapolated out for otherdays.
Added by
Last Modified by on 3/15/2017 12:09:59 PM
Counters 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Sharing

Relevance Image Sharing:

<a href='https://bigfix.me/cdb/relevance/3019787'><img src='https://bigfix.me/cdb/relevanceimage/3019787?width=400' border='0'></a>
Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
bigjdl -
Well that is a heck of a lot more efficient was to work out the logic i was thinking.
jgstew -
This has been a curiosity for me to play around with, but I think I found the optimal solution: https://bigfix.me/relevance/details/3019803
jgstew -
You could add this first: (current day_of_week = Sunday)
jgstew -
Also related: https://bigfix.me/relevance/details/3019801
jgstew -
The related relevance I posted takes a different approach of determining when the next patch tuesday will be, but not if it is today... but it is a similar idea.
bigjdl -
The complexity here was they wanted the last one in the month. It didn't seem like there was an easier way based on my searches than just adding 28 days and seeing if it was still in the month. Ultimately this is going to be used in a fixlet and set = current date
jgstew -
Related: https://www.bigfix.me/relevance/details/3003590