Page 1 of 1
Today as default date does not work
Posted: Thu Aug 29, 2013 12:29 am
by mpol_ch
Hello
In previouse version this code has worked file to ad today's date as default "date('d.m.Y')"
Now it does not. Is it something special must be entered in PHPMAKER10?
mpol_ch
Re: Today as default date does not work
Posted: Thu Aug 29, 2013 9:36 am
by danielc
It is normal to have today's date if you add [Add Page]->[Default Value] as date('d.m.Y') (no need to have double quote to put into the field as this is php function). What is your output for your field at the add page?
Re: Today as default date does not work
Posted: Thu Aug 29, 2013 11:46 am
by mobhar
Make sure the date format of the field has been setup to d.m.Y
Re: Today as default date does not work
Posted: Thu Aug 29, 2013 5:18 pm
by mpol_ch
thanks.
It works fine now. I just deleted the ' and reentered it.
mpol_ch