 generic date argument the generic date argument is based on iso 8601 date duration and time interval standards and allows you to create an flexible argument for any date range for any date field the argument expects a value like 2006010120060115 or 2006w24 or p1w separate from and to dates or date and period with a double hyphen from and to dates in argument are iso dates but can be shortened and missing parts will be added omitted parts of iso dates will be assumed to be the first possible for the from date or the last possible for the to date value in that time period the to portion of the argument can be eliminated if it is the same as the from portion use instead of a date to substitute in the current date and time shortcuts are available use periods p1h p1d p1w p1m p1y to get next hour day week month year from now use date before p sign to get next hour day week month year from that date the iso standard calls for a separator between a date and the p but the separator is optional between a start date and a period in this argument to make the result easier to read use format like 2006w24 to find iso week number 24 in year 2006 examples  argument resulting query range 2006w24 24th iso week in 2006 2006 the whole year of 2006 200603 the whole month of mar 2006 200602200703 feb 1 2006 to mar 31 2006 20060831t1420060831t16 the 14th to 16th hours of aug 8 2006 20061231 now to 20061231t235959 p3h now to three hours from now p1y90d now to 1 year and 90 days from now 20060305p1w the week starting mar 5 2006 200601p3m 3 months starting jan 2006 see http enwikipediaorg wiki iso8601 weekdates for definitions of iso weeks see http enwikipediaorg wiki iso8601 duration for definitions of iso duration and time interval  