Comparing two dates


Posted on 16th Feb 2014 07:03 pm by admin

Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with it is it always returns false:

if(date("d/m/y", $course->finish_date) > date("d/m/y", $today[0]))
// do somemthing
else
// do something

No comments posted yet

Your Answer:

Login to answer
129 Like 34 Dislike
Previous forums Next forums
Other forums

setcookie and isset($_COOKIE(name)) seem very finnicky.
I'm currently playing around with a user system with login and registration. I'm trying to use cooki

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

WELCOME SCREEN
first of all let me tell you what does my script do,

it´s a very simple query to show a e

how to get values from $_Post with onchange="form.submit();"?
Hi, I have a form that submit to itself with a file upload field and two other hidden field values.<

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

Alterar a hora do servidor
Se alguém souber, ajude-me a adicionar 6 horas, obrigado
<tr>
&

Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter

Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out

LinkedList help
Ok so I just learned quickly about lists, so I have a not too hard project I think, but am having a

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash