This topic is locked
[SOLVED]

 Date format in Charts

3/4/2012 9:21:32 AM
PHPRunner General questions
A
ant author

I am experimenting with Charts and would like to include the Day in the date format. I currently have the date format set to long date and would like to include the day of the week in the format.
Appreciate any help with how to do this.

C
cgphp 3/4/2012

Set the field as Custom and enter the following code:

$value = date("l",strtotime($value)); //l (lowercase 'L')
A
ant author 3/4/2012

Thanks Cristian,

The Custom field gives me the day of the week.
What I would like to show is the date in long date format plus the day of the week, is that possible?
The other problem is it is not showing the full date series its only showing 7 days?

C
cgphp 3/4/2012
$value = date("Y-m-d h:i:s l",strtotime($value));
A
ant author 3/4/2012


$value = date("Y-m-d h:i:s l",strtotime($value));



Excellent, thank you very much, I removed the time settings $value = date("Y-m-d l",strtotime($value));and its working great.
Thank you <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=64729&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />