Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Explode, Slit

  1. #1
    New Coder
    Join Date
    Feb 2007
    Location
    FL
    Posts
    35
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Explode, Slit

    I have a date 08-22-1983 and i need to spit it into 3 part
    08
    22
    1983

    Any ides how do do this?
    Thanks

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    Code:
    <cfset myDate = parseDateTime( '08-22-1983' )>
    
    <cfoutput>
    #month( myDate )#
    #day( myDate )#
    #year( myDate )#
    </cfoutput>
    Altho a simple search of google probably would have revealed this a lot quicker...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •