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

Working with popups and such in a class
I've recently started building my applications completely enclosed in classes. I like the fact that

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

Any decent php formatter/beautifier/pretty printer?
Any decent php formatter/beautifier/pretty printer class/function?

I found the following whil

Pass sql into pl/sql and create RMAN duplicate script.
Hi,

I'm new to pl/sql and I'm trying to write a script that will generate some RMAN comma

Page doesn't expand for content
Hi. I've been testing a query I made. It's here http://lapr1.6te.net/inquerito.php
The page doesn

Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a resu

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

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