This topic is locked

Default value on date type field

4/13/2010 9:13:50 PM
PHPRunner General questions
G
gawde author

Using 5.2 (5242)
Hello all,
I am trying to format todays date as the initial value to be placed into a date field. The client does not want to see the time presented. Only the day/month/year. I have tried date('d-m-Y') and date_format(...) in the default field as well as in Custom on the View As tab. Still the Edit page always presents the date andtime. Is it not possible to format the default entry?
Has anyone done this? Any help would be much appreciated.
Regards,
Greg

Sergey Kornilov admin 4/14/2010

It looks like you use DATETIME field. If you don't need time portion at all change field type to DATE.

G
gawde author 4/14/2010



It looks like you use DATETIME field. If you don't need time portion at all change field type to DATE.



Thanks for the answer. That actually was something I checked before I posted and both the MySQL and Runner type for that field is simply DATE. Any other thoughts?
Greg