You can use this to get a date in the YYYYMMDD format:
q: (year of it as string & month of it as two digits & day_of_month of it as two digits) of current date
A: 20141013
T: 0.040 ms
I: singular string
However you probably want to do the opposite:
q: (last 2 of it as integer as day_of_month & (last 2 of first 6 of it) as integer as month & first 4 of it as integer as year ) of "20141013"
A: Mon, 13 Oct 2014
T: 0.047 ms
I: singular date
Hi Jeremy, indeed that worked. I was able to figure out the rest. This is the solution in case anyone else find it useful. I used parenthesized feature to get the number of days and then cast is an integer, which I can later compate to the value that I want for relevance.