Ask a Question related to Coldfusion Database Access, Design and Development.
-
kabbi~thkek #1
date format in db and output on screen
Hi,
I have a form (step1) which inserts some data (serialnr and type and date as
hidden field) into the database, then users are directed to another page
(step2) where further details for the just inserted data can be inserted (like:
location, user, and the just inserted values (in step 1) are displayed and can
be adjusted.
My question is:
I use a MySQL database so the values for date have to be inserted like this:
0000-00-00 (Y-M-D).
I just give the form field a value like this:
<cfoutput>#DateFormat(Now(), "YYYY-MM-DD")#</cfoutput>
However in step2 the value needs to be displayed from the database. It is
displayed like this:
{ts '2005-10-04 00:00:00'} this is not right, does anyone know how i could get
the values displayed in a normal way?
Hopefully someone can help me.
Thank you in advance,
Kabbi
kabbi~thkek Guest
-
Indesign CS will not export as a screen format
I'm using Adobe Indesign CS Education version on Windows XP. I have a document, and whenever I try to export it to PDF as a "preset for screen" it... -
Format to save for Screen Printers?
New to illustrator. I have EPS and JPG files from other packages I want to send to a printer. They told me that the "artwork needs to be vector based... -
output format select
Hello! I have to export several tables from informix to sdf text format (all fields must be specific length, numeric fields must be right... -
converting date into database date format(newbie)
Hi! U can convert "8-Aug-03" into mysql date which requires yyyy-mm-dd format as below. <?php date("Y-m-d",strtotime("8-Aug-03")); ?> -
grouping output to screen
I'm able to run the following while in php admin, but I want to be able to run this from a php page and seethe results on the screen. Any... -
Dan Bracuk #2
Re: date format in db and output on screen
There are two ways. One is to use the Cold Fusion dateformat function after
you select the field. The other, if mySql has such an animal, is to use a
database function that converts dates to text. Oracle to_char is one example.
Dan Bracuk Guest
-
jdeline #3
Re: date format in db and output on screen
Just use the date format function again -
DateFormat(myQuery.databaseDate, "YYYY-MM-DD")
jdeline Guest



Reply With Quote

