OH great.  Next time you're bored James, send me a note. I have LOTS of
interesting things you could do for me to stave off the tedium.



Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Silva
Sent: Wednesday, 11 June 2003 1:16 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Print date vertically

Here's my effort (i was bored):

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<cfscript>
function vertDate(date_in) {
                date_out = listFirst(date_in," ") & "<br>";
                month = listLast(date_in," ");
                len = len(month);
                for(i = 1; i LTE len; i = i + 1) {
                        date_out = date_out & mid(month,i,1);
                        if(i NEQ len) {
                                date_out = date_out & "<br>";
                        }
                }
                return date_out;
}
</cfscript>

<cfset test_date = "14 May">
<cfoutput>#vertDate(test_date)#</cfoutput>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

should work for dates in the format: "DD MMM"

Of course, you can always use the CSS method... but like David said, I.E
only :(
_______________________
James Silva
Web Production
Gruden Pty Ltd

Tel:   +61 02 9956 6388
Fax:   +61 02 9956 8433
Email: [EMAIL PROTECTED]
Web:   www.gruden.com
_______________________


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to