Today as default date does not work

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 877
Location: Switzerland

Today as default date does not work

Post 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


danielc
User
Posts: 1601

Post 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?


mobhar
User
Posts: 11790

Post by mobhar »

Make sure the date format of the field has been setup to d.m.Y


mpol_ch
User
Posts: 877
Location: Switzerland

Post by mpol_ch »

thanks.

It works fine now. I just deleted the ' and reentered it.

mpol_ch


Post Reply