This topic is locked

Email Date Format

3/27/2008 6:58:24 AM
PHPRunner General questions
G
Greeham author

I have a Before record Added Event, where the data inputted is emailed but the date format that is inputted by the date picker is listed in an American format with a time added also.
Is there anyway to adjust this, so the person recieving the email has the date in the format of dd-mm-YY insted of mm-dd-YYY hh:mm:ss
Thanks,
Graham

J
Jane 3/27/2008

Hi,
you can convert date value in your event.

Here is a sample:

$date_value = $values["FieldName"];

$date_value = date("d-m-Y",strtotime($date_value));



where FieldName is your actual field name.
Then use $date_value in the email.

G
Greeham author 3/31/2008

Thanks Jane, worked great.
One other question.
I have a dependant drop down, but want to set the size of the box before it is filled with the dependant results. i.e at the moment the box is say 15 long, once a selection is made it then expands to fit the largest possible selection. Is there a way to change the box to a set length before the results are pulled from the db?
Thanks,
Graham
In actual fact, is it possible to change the text of 'Please Select' to something else on a drop down?

J
Jane 3/31/2008

Graham,
you can do it editing BuildSelectControl function in the generated include/commonfunctions.php file manually.

However we don't have a ready to go solution for this.