Sign in to follow this  
Jamie 1

DateTime Problem

Recommended Posts

Hello.

I'm using the 3 tier page setup derived from the FusionCharts Demo.

The charts do not like the date:                dashboard.php?sumindex=2013-12-14

It works fine with everything else and even works without the dashes:   dashboard.php?sumindex=2013214

 

It is a DateTime field in a MYSQL Table, so the date is stored as 2013-12-14

 

Cannot work it out, any help would be much appreciated.

 

Thanks.

 

Jamie

Share this post


Link to post
Share on other sites

Ok I fixed my problem by conditioning the send from the default (index) page to remove the dashes..

 

  $intsumindex = date("Ymd", strtotime($_GET['sumindex']));

 

Strange to have to do that and threw me for 2 days. Ok now thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this