CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Going Nuts! Date into MySQL - Urgent!

Print topic Send  topic

Author Message
Trevor
Posted: 05/28/2002, 2:03 AM

Using CC and PHP

This should be so easy but nothing functions today!!!!
I have a field called $fldtest_date and it has a date in it like 28 May, 2002.

All I want to do is re-format this in the Before Insert event so that it goes into MySQL correctly!
Nicole
Posted: 05/28/2002, 2:23 AM

Trevor,
refer to following article that explains how to format date and where code is to be placed:
http://www.gotocode.com/art.asp?art_id=132&
Trevor
Posted: 05/28/2002, 3:41 AM

Hi Hellen,

This is fine but what I need is the javascript function to insert into the Before Insert event to format the data for MySQL.

Please help!
Nicole
Posted: 05/28/2002, 4:05 AM

Trevor,
unfortunately I cannot povide JS example, but try to search for one (date converting) on www.hotscripts.com and on www.faqts.com and assign custom onvert date function to form onsubmit event.
schaeff
Posted: 05/28/2002, 4:28 PM

You might want to take a look at the PHP function strtotime:
"Parse about any English textual datetime description into a UNIX timestamp"

Philippe

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.