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

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

Drop Down and text box issue
Is it possible to set a drop down list and text boxes to a certain width?

here is my code

(sub)screen resize modification doesn't work after ECC 6 EhP 4 installation
Hello,

We have previously extended the size of the custom data tab on PO transaction ME23

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

How do I use a global footer..?
If my index.php has a bole bunch of if functions and exit's in them

PHP Directory Listing Not working
Hey Guys,

I need help, I tried a ton of directory listing scripts and they all don't work. Al

Target costs on Process orders not calculating
Hi All,

We have released standard costs for all the materials. We have also done Goods r

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

help, header() is not working!
Hello, I have this code:


<?php

/**
* @author samoi
* @copyright 200

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