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

Sending an SMS Message with ASP.NET
Often times it may be a requirement for your web application to send an SMS message. Such examples w

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

HELP with mysql_real_escape_string
I'm looking to remove apostrophes completely when someone enters lyrics but don't have a clue how to

WM transfer order: confirm different batch than proposed by system
Hi folks,

following scenario: we have a full WM with mixed batch numbers allowed in stora

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

Using Microsoft Exchange Server with PHP
Hi,

I wanted to know if its possible to fetch email attachments from the exchange server usin

Delete records not in top 15
Hi,

I'm creating a hall of fame page in my game and the page will only display the top 15 sco

add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

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