Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Eric on Jan 05, 2010 07:06
open dhtmlx forum
problem with date format

Hello,
I'm having problem with date format, the event is inserted with an inverted start/end date.

Example : the event with start date : 01-05-2010 is inserted 05-01-2010.

Can you help me please?

Regards.
ERIC
Answer posted by Stanislav (support) on Jan 05, 2010 07:22
If you are using dhtmlxScheduler - be sure to add the next line 

 scheduler.config.xml_date="%Y-%m-%d %H:%i";

which will define default data sending format. 

http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:initialization
Answer posted by ERIC on Jan 05, 2010 07:36
The problem is there with that line added. And i tried to add the next line but the problem remains.
 scheduler.config.api_date="%Y-%m-%d %H:%i";

I'm working with MSSQL database.
Answer posted by Alex (support) on Jan 06, 2010 01:22

In case of MSSQL you can try to use the following: 

scheduler.config.xml_date="%m/%d/%Y  %H:%i";