CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 mssql date formatting

Print topic Send  topic

Author Message
fran13

Posts: 9
Posted: 11/26/2007, 10:35 PM

Hi there

I'm having problems with my date formatting.
I'm using MS SQL Server 2000 (with the default date settings- Oct 4 2006 12:00AM)
I used several date format settings (in the connection) and set my fields' datatype to date (with a format of dd/mm/yyyy)
The date gets stored in the db, but doesn't show in the textbox. (wich is bound to the field)
In the database my dates show in this format : yyyy/mm/dd

I tried to change the date format under Connection->Server to "Mon DD YYYY HH:MIAM" ,
but in the common.php it doesn't look right:
"DateFormat" => array("Mo", "n", " DD YYYY ", "HH", ":MIAM").

Please help!
Thanks
View profile  Send private message
fran13

Posts: 9
Posted: 11/27/2007, 12:31 AM

YEAH!YEAH!YEAH!
I found the problem after 7 hours of struggling!!!

The problem was in the php.ini.
mssql.datetimeconvert = Off had to be uncommented (remove the ; )
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.

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.