CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 date in PHP

Print topic Send  topic

Author Message
nag22
Posted: 11/17/2004, 3:20 PM

I am trying to display two date fields in record. create_dt and update_dt. i have set the data type to date and default value as general date. I am not able to submit the value to the database. plz help me
tonyk

Posts: 163
Posted: 11/17/2004, 8:51 PM

What database are you using?
Are you using the GUI to build your page or are these hand-coded fields?
If using the GUI make sure you have set the date format up in the project data connection dialogs. For MySql the date format for the database is yyyy-mm-dd HH:nn:ss
If using the GUI then the system should generate the code for you automatically.
If hand coding you will probably need to use functions such as ToSQL which are functions of the connection object. Look them up in help and you will find examples.
Hope this helps
View profile  Send private message
nag22
Posted: 11/18/2004, 9:36 AM

I am using Mysql and the data format is same as you said. Even if using the GUI the date is not getting posted in the database.
Tengel

Posts: 49
Posted: 11/18/2004, 9:55 AM

Be sure you set DBformat as yyyy-mm-dd HH:nn:ss in the properties of the field
_________________
---
Tengel
View profile  Send private message
nag22
Posted: 11/18/2004, 1:03 PM

Thanks tonyx and Tengel. It works now.

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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