Drupal CCK Date: how to set datetime field's default value to a fix date?
Posted
by Daj pan spokój
on Stack Overflow
See other posts from Stack Overflow
or by Daj pan spokój
Published on 2010-05-03T06:43:29Z
Indexed on
2010/05/03
6:48 UTC
Read the original article
Hit count: 211
Hi,
I have a CCK datetime field and would like to set its default value to 31 May 2011.
When I go to the configuration of the field I can set the default value to Now
, Blank
or Relative
.
Relative
is to be set by a PHP's strtotime
argument. However, it fails when I set it to
31 May 2011
last day of May 2011
(that should normally work according to http://php.net/manual/en/function.strtotime.php)
Do You have any idea how to set it to default to 31 May 2011?
© Stack Overflow or respective owner