Ask a Question related to Macromedia ColdFusion, Design and Development.
-
vkunirs #1
How to convert date into dd/mm/yy?
Hi
i am reading an email. it is haivng date in this format.
"Wed, 20 Apr 2005 18:37:17 +0530"
now when i am dispalying this date i want to display it in the dd-mm-yyyy
format.
how to do it?
vkunirs Guest
-
Convert LDAP Attribute accountexpires to a date
I"m able to convert the attribute pwdlast set to a date using the following code, but it doesn't really work with accountexpires. Any help is... -
Convert Epoch Date
I'm working with an SQL database that stores dates in integer fields. I'm using Coldfusion and was wondering if there is a function to convert... -
Convert Date to week number
Tim wrote: ISO8601 defines a standard, but not everyone follows it. See: ... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
Do I need to Convert with Convert.ToInt32(session("myNumber")) ?
Hello, I have this session("myNumber") = 888 Dim intNumber As Integer a) intNumber = session("myNumber") b) intNumber =... -
gclausen #2
Re: How to convert date into dd/mm/yy?
Have you tried the DateFormat() function? DateFormat( yourDate, "dd-mm-yyyy") [url]http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi59.htm[/url]
gclausen Guest
-
vkunirs #3
Re: How to convert date into dd/mm/yy?
Hi
yeap...
but i not getting with that.
vkunirs Guest
-
PaulH #4
Re: How to convert date into dd/mm/yy?
please show your code. what locale is your cf server using?
PaulH Guest
-
OldCFer #5
Re: How to convert date into dd/mm/yy?
Try:
<cfset dt = "Wed, 20 Apr 2005 18:37:17 +0530">
<cfoutput>#DateFormat(ParseDateTime(dt),"dd-mm-yyyy")#</cfoutput>
OldCFer Guest
-
PaulH #6
Re: How to convert date into dd/mm/yy?
under mx 7, i was able to dump in that string into dateFormat just fine though my first thought was also to use parseDateTime.
PaulH Guest
-
Unregistered #7
Convert as 400 date (number) to sql date then compare to odbc date using coldfusion
<CFQuery name='getlist' Datasource="AS400" >
SELECT
ITEMMAST.AS400DATE),5,8) || '-' || Substring(Digits(HHHLIB.ITEMMAST.AS400DATE),3,2) || '-' || Substring(Digits(HHHLIB.ITEMMAST.AS400DATE),1,2)) As SQLDATE
FROM ITEMMAST
</CFQUERY>
<CFQUERY NAME='GET2' DATASOURCE='getlist' dbtype='query'>
WHERE
SQLDATE >#CreateODBCDate( now())#
</CFQUERY>Unregistered Guest



Reply With Quote

