CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 help with date text box

Print topic Send  topic

Author Message
hugonr

Posts: 17
Posted: 04/26/2005, 8:39 AM

i have one text box configured like this:

name : start_date
caption : start date
type from: database column
type of data: text (i tried date too)
the rest is blank

when i open one record from the grid, if the data type is text appears the date i want but in the format "june, 18 2005...", if i put the data type with date i receive one blank text box....

i tried to change the date format in the project configuration and nothing, i dont know why i get this problem... i get the same problem in the grid, i needed to take the date in hidden text box and convert it in one visible label in the before show like this:

$form->label1->value = date("d/m/Y", strtotime($form->textfield->value));

can anyone help me? (im using mssql connection)

thanks
View profile  Send private message
Nicole

Posts: 586
Posted: 04/27/2005, 1:15 AM

Hello,
to display date value in PHP you should fill Database Date Format property in database Connection dialog/Server tab with format that exactly matches the one returned from the database.
E.g. yyyy-mm-dd HH:nn:ss is accepted for MySQL.

_________________
Regards,
Nicole
View profile  Send private message
hugonr

Posts: 17
Posted: 04/27/2005, 11:00 AM

big thanks!!!!!
View profile  Send private message

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.

Web Database

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.