Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3261
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: comparing dates? |
| Date | 2011-10-02 09:58 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <j69qll$37b$2@dont-email.me> (permalink) |
| References | <o2og875gpttj3c9h6ilv93mosd88dbujqt@4ax.com> |
On 10/2/2011 9:00 AM, Michael Joel wrote: > Is there a better way to compare dates than breaking a date into day, > month, year and comparing each part? > I need to know if a date (say 10/03/2011) is before another date in > the same format. Direct comparison doesn't work. > > Thanks > Mike If the dates are since 1/1/1970 you can use strtotime() to convert to a unix date/time and compare directly. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
comparing dates? Michael Joel <no@please.com> - 2011-10-02 09:00 -0400
Re: comparing dates? houghi <houghi@houghi.org.invalid> - 2011-10-02 15:43 +0200
Re: comparing dates? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-02 09:58 -0400
Re: comparing dates? Doug Miller <doug_at_milmacdotcom@example.com> - 2011-10-02 12:36 -0400
Re: comparing dates? gordonb.wr5h4@burditt.org (Gordon Burditt) - 2011-10-02 23:54 -0500
Re: comparing dates? Doug Miller <doug_at_milmacdotcom@example.com> - 2011-10-03 11:50 -0400
Re: comparing dates? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-03 14:59 -0400
Re: comparing dates? bobm3@worthless.info - 2011-10-03 20:31 -0400
Re: comparing dates? Michael Joel <no@please.com> - 2011-10-04 09:27 -0400
Re: comparing dates? The Natural Philosopher <tnp@invalid.invalid> - 2011-10-04 15:43 +0100
Re: comparing dates? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-10-06 11:00 +0200
csiph-web