CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Update record Date Field

Print topic Send  topic

Author Message
Frans
Posted: 09/17/2003, 3:27 AM

Hello,

I want to update a record but when i place the following code
in the before show event the field changes to 01-01-1970 01:33:23.

global $storing_frm;
$storing_frm->wijzigingsdatum->SetValue(date("Y-m-d G:i:s"));

If i change the field properties to Integer instead of Date the code displays
the correct date but when i submit the updated record the value is offcourse wrong. I played a lot with the DATA TYPE, FORMAT, DEFAULT VALUE and the DBFORMAT but couldn't find the proper settings.

Any suggestions?

Regards,
Frans
Frans
Posted: 09/17/2003, 3:49 AM

Problem solved. Changed Field to TEXT.

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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