Hi,
I am trying to crate a rule that has a condition so it will only work between the last Sunday of March and the last Sunday or November to coincide with British Summer Time (BST)..
I have tried things like "march last sunday", "april last sunday" etc. but can't seem to get the last Sunday of the March..
Anyone have any ideas?
Thanks
On 12.03.2013 11:40, Wipe_Out wrote:
Hi,
I am trying to crate a rule that has a condition so it will only work between the last Sunday of March and the last Sunday or November to coincide with British Summer Time (BST)..
I have tried things like "march last sunday", "april last sunday" etc. but can't seem to get the last Sunday of the March..
Anyone have any ideas?
Thanks
echo date('Y-m-d',strtotime('last sunday of march'));
and
echo date('Y-m-d',strtotime('last sunday of november'));
works for me.
Ken
Hmmm.. Could have sworn I tried that phrase too.. But yes, its works.. Thanks.. :)
On 12 March 2013 16:23, kenrbnsn@rbnsn.com wrote:
On 12.03.2013 11:40, Wipe_Out wrote:
Hi,
I am trying to crate a rule that has a condition so it will only work between the last Sunday of March and the last Sunday or November to coincide with British Summer Time (BST)..
I have tried things like "march last sunday", "april last sunday" etc. but can't seem to get the last Sunday of the March..
Anyone have any ideas?
Thanks
echo date('Y-m-d',strtotime('last sunday of march'));
and
echo date('Y-m-d',strtotime('last sunday of november'));
works for me.
Ken
[ Drupal support list | http://lists.drupal.org/ ]
'last sunday of march'. Here's PHP's relative date formats:
http://www.php.net/manual/en/datetime.formats.relative.php
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 3/12/2013 11:40 AM, Wipe_Out wrote:
Hi,
I am trying to crate a rule that has a condition so it will only work between the last Sunday of March and the last Sunday or November to coincide with British Summer Time (BST)..
I have tried things like "march last sunday", "april last sunday" etc. but can't seem to get the last Sunday of the March..
Anyone have any ideas?
Thanks