January 6th, 2004

DateRangeFormat()

I've been published! The (vast) majority of my web development is done in Cold Fusion. Recent versions allow for user-defined functions, which essentially allow you to run commonly used blocks of code using a shortcut. (Not a great definition, but that's more or less what it does) My function takes two dates and returns a string with redundant date formatting removed ("August 3 - 11, 2003", "December 23 - August 11, 2003"). I'll often use this to display dates coming out of an events calendar - by letting the UDF do the work, I only have to pass the start and end date of the event, and it's displayed correctly. I originally submitted the UDF, oh, maybe 2 months ago. I had assumed that it wasn't going to go up on the cflib.org, but last night I got a flurry of e-mails from Raymond Camden about it. There was a bug in my code, which he had already modified. We went through a revision or two, and now it's up. You can view and download the DateRangeFormat function from the Common Function Library Project.

Posted January 6, 2004 in personal.   Comments Off.