Results 1 to 2 of 2
  1. #1
    Abina's Avatar
    Abina is offline Master
    Join Date
    Dec 2009
    Location
    United States
    Posts
    1,073
    Thanks
    1
    Thanked 6 Times in 4 Posts
    Feedback Score
    0

    Default Explode a string?

    I am needing to explode a string... Well, actually its a date time stamp.

    I have dates and times in the database

    example: 02/05/2009 10:43 AM

    I am wanting to get a hold of the '05' part of the date so I can change it into the month name (I am in the UK so its dd/mm/yyyy).

    Does anyone know how to do it?

  2. #2
    numberone's Avatar
    numberone is offline Senior
    Join Date
    Jan 2010
    Posts
    623
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    there are many ways to do this.

    #month(timestamp)#

    #dateformat(timestamp,"mmmm")#
    That one will give you the month name
    You can also use the DatePart() function, but I can't remember the syntax off-hand. If you go onto Adobe's ColdFusion Livedocs and lookup Date Functions there are quite a few.

Similar Threads

  1. Replies: 0
    Last Post: 03-30-2010, 03:11 PM
  2. Replies: 1
    Last Post: 02-03-2010, 11:03 AM
  3. String Replace Function
    By sunshine in forum JavaScript & AJAX
    Replies: 1
    Last Post: 01-04-2010, 04:46 PM
  4. Unterminated String constant
    By sunshine in forum JavaScript & AJAX
    Replies: 0
    Last Post: 01-04-2010, 11:23 AM
  5. Return the length of a string
    By krates98 in forum JavaScript & AJAX
    Replies: 2
    Last Post: 07-15-2009, 05:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS