Another date compare question

15 posts by 4 authors in: Forums > CMS Builder
Last Post: March 4, 2010   (RSS)

Re: [gkornbluth] Another date compare question

By Dave - March 4, 2010

Hi Jerry,

> Is there a more elegant way to code this then repeating all of the code twice.

I'm going to guess not, but if you'l like to attach your viewer file I can take a look and let you know any suggestions.
Dave Edis - Senior Developer
interactivetools.com

By gkornbluth - March 4, 2010

Here you go. Viewer attached.

Thanks
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Attachments:

compare-date-test.php 3K

Re: [gkornbluth] Another date compare question

By Chris - March 4, 2010

Hi Jerry,

I'm assuming those are two separate pages which you've concatenated together for attaching to this thread?

While it's possible to factor out common code into include files or php functions, with such a small amount of code it would probably make things more complicated to do so. I think you're best off with what you have already. :)
All the best,
Chris

Re: [chris] Another date compare question

By gkornbluth - March 4, 2010

Thanks Chris
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php