Yesterday:%globals_date_relative_yesterday_Y-m-d%<br>
This Friday:%globals_date_relative_this_friday_d-m-Y%.
But what is displayed on the screen is
14-01-2014
Tomorrow:Tue, 14 Jan 2014 13:36:10 +1300NZTuesdaypm3136vNZ_312014012014Tue, 14 Jan 2014 13:36:10 +1300Tue, 14 Jan 2014 13:36:10 +130020142_2014-01-14
Yesterday:Tue, 14 Jan 2014 13:36:10 +1300NZTuesdaypm3136vNZ_14NZ1031NZTue, 14 Jan 2014 13:36:10 +130014pm14_2014-01-14
This Friday:Tue, 14 Jan 2014 13:36:10 +1300NZTuesdaypm3136vNZ_31013610_fTue, 14 Jan 2014 13:36:10 +13003614pm14_14-01-2014.
All the dates are the same and appending the php date suffix doesn't seem to make a difference.
I'm wanting to get dates for yesterday and 6 months ago or 180 days in the past.
Is there a list of strings that are available for relative date?
The tomorrow and yesterday modifiers won't work, you will need to use next_day and last_day, this_friday works for me though, but u can also try next_friday, here's what I get on a 4.18.0 system (today being 14-01-2014):
Tomorrow: %globals_date_relative_next_day_d-m-Y%<br>
Yesterday: %globals_date_relative_last_day_d-m-Y%<br>
This Friday: %globals_date_relative_this_friday_d-m-Y%<br>
Next Friday: %globals_date_relative_next_friday_d-m-Y%<br>
Prints:
Tomorrow: 15-01-2014
Yesterday: 13-01-2014
This Friday: 17-01-2014
Next Friday: 17-01-2014
Really wanted to use this in an asset builder custom form layout, but the date_relative keyword does not seem to work in that situation, even though the standard %globals_date_l% does.