get_contain_date()
Description
get the date expression contained in item text
Works with the following date formats
- today, tomorrow, yesterday, the day before yesterday, the day after tomorrow
- [next|last] Mon. Monday, Tues. Tuesday, etc.
- Jan. 10, February 12, etc
- 12/31, 11-25, etc
- 2008-8-1, 2009/9/1
- mm-dd-yyyy, mm/dd/yyyy
where the year is not specified the current year is assumed
Relative date expression may be used to calulate a date in the future
- +(-)xd plus or minus "x" days (eg. +5d, -27d)
- +(-)xw plus or minus "x" weeks
- +(-)xm plus or minus "x" months
- +(-)xy plus or minus "x" years
- -2y9m 6w2d (calculates from "today")
Examples
get_contain_date() for each of the following will return the indicated child item
2007/5/5
20070505
+5d
returns the date 5 days from the current date
2007/5/5+5d
20070510
Other examples of valid date expression
- 9/17 + 60d (September 17 plus 60 days)
- tomorrow + 4m
- last Friday - 7w
- next Tues + 1y4m3d (next Tuesday plus 1 year, 4 months and 3 days)
- 2009/5/22 + 2y 7m 19d
Related Rules
has_contain_date()