Results 1 to 2 of 2
Thread: Explode a string?
-
01-09-2010, 03:49 PM #1
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?
-
02-02-2010, 11:11 AM #2
there are many ways to do this.
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.#month(timestamp)#
#dateformat(timestamp,"mmmm")#
That one will give you the month name
Similar Threads
-
Replace String Ignoring Case - ASP .NET
By manik in forum ASPReplies: 0Last Post: 03-30-2010, 03:11 PM -
how can i filter string using regular expression
By Abina in forum PHPReplies: 1Last Post: 02-03-2010, 11:03 AM -
String Replace Function
By sunshine in forum JavaScript & AJAXReplies: 1Last Post: 01-04-2010, 04:46 PM -
Unterminated String constant
By sunshine in forum JavaScript & AJAXReplies: 0Last Post: 01-04-2010, 11:23 AM -
Return the length of a string
By krates98 in forum JavaScript & AJAXReplies: 2Last Post: 07-15-2009, 05:19 AM




Reply With Quote

