This topic is locked
[SOLVED]

 Time is always shown

11/15/2009 11:01:48 PM
PHPRunner General questions
P
pwalkin author

I have a date field defined as DATE 10. The View As for the date field is also set to MM/DD/YYYY. I have an event set to send new data via email after the data is saved.
This is what's in the subject line:

Subject: Atlantic Limo Quote for 2016-11-16 00:00:00
Why is the time being displayed?
I would like the subject line to be displayed like this:

Subject: Atlantic Limo Quote for 11-16-2016
Is there a way to get the day of the week displayed as well?
This is the event code:

$subject="Atlantic Limo Quote for $values[DateofService] $values[ServiceType]";

J
Jane 11/17/2009

Hi,
here is a sample:

$subject="Atlantic Limo Quote for ".date("m/d/Y",strtotime($values["DateofService"]))." ".$values["ServiceType"];



More info here:

http://php.net/manual/en/function.date.php

P
pwalkin author 11/17/2009



Hi,
here is a sample:

$subject="Atlantic Limo Quote for ".date("m/d/Y",strtotime($values["DateofService"]))." ".$values["ServiceType"];



More info here:

http://php.net/manual/en/function.date.php


Let's get married Jane!
Thanks!