Re: [PHP] date(n/Y) strtotime

2006-08-02 Thread Adam Zey
ent out my second email before I had read yours. I'll give yours a go, thanks again. Mark -Original Message- From: Adam Zey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 11:15 AM To: Mark Steudel Cc: PHP Mailing Lists Subject: Re: [PHP] date(n/Y) strtotime Mark Steudel wr

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
gt; > All of those echo true, how do I determine if strtotime has failed or > not? > > Mark > -Original Message- > From: Mark Steudel > Sent: Wednesday, August 02, 2006 9:55 AM > To: Mark Steudel; PHP Mailing Lists > Subject: RE: [PHP] date(n/Y) strtotime > &

Re: [PHP] date(n/Y) strtotime

2006-08-02 Thread Adam Zey
{ Echo 'true'; } If( strtotime( '1/2009') == '-1' ) { Echo 'false'; } Else { Echo 'true'; } All of those echo true, how do I determine if strtotime has failed or not? Mark -Original Message- From: Mark Steudel Sent: Wednesday, August 02, 2006

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
} If( strtotime( '1/2009') == '-1' ) { Echo 'false'; } Else { Echo 'true'; } All of those echo true, how do I determine if strtotime has failed or not? Mark -Original Message- From: Mark Steudel Sent: Wednesday, August 02, 2006 9:55 AM To: Mark

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
rk -----Original Message----- From: Mark Steudel Sent: Wednesday, August 02, 2006 9:46 AM To: PHP Mailing Lists Subject: [PHP] date(n/Y) strtotime I've always been really amazed at how well strtotime works, but recently ran into an issue where it couldn't figure out the date if it was a c

[PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
I've always been really amazed at how well strtotime works, but recently ran into an issue where it couldn't figure out the date if it was a cc exp date in long format, e.g. 1/2009. I was curious if anyone else has run into this and how did they get around it, here was my solution: function expDat