there's a nice tag on CFLib.org for this.
On 10/05/06, Tony <[EMAIL PROTECTED]> wrote:
> i would do this:
>
> <cfset myVar = "20060508" />
> <cfset myVar = insert('-',insert('-',myVar,4),7) />
>
> <cfoutput>
> #dateFormat(myVar,'mm/dd/yyyy')#
> </cfoutput>
>
> tw
>
> On 5/10/06, Paul Giesenhagen <[EMAIL PROTECTED]> wrote:
> > I have a variable that has a date in this format: 20060508 (which is
> > 05/08/2006)
> >
> > Does anyone have a quick and good way of converting 20060508 to a date
> > stamp that "DateFormat()" can work with?
> >
> > Thanks
> >
> > Paul Giesenhagen
> > QuillDesign
> > 417-885-1375
> > http://www.quilldesign.com
> >
> >
> >
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240153
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54