EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on April 15, 2015, 09:03:19 PM



Title: Datetimebox format error
Post by: aswzen on April 15, 2015, 09:03:19 PM
I have a problem when formating and parsering datetimebox

Look at this fiddle http://jsfiddle.net/aswzen/c8kragem/

I just make the default datetimebox appear and allow to be set with format DD/MM/YYYY HH:II
but the result is not same as expectation   :o

i set the datetimebox via js to '20/2/2015 10:00' but the box show 08/02/2016 10:00 -> wrong date and not same as format
and next i set the datetimebox via the chooser to 20 February 2015 but the box show 2/20/2015 10:00  -> not same as format

 ???
any explanation ?

and

is the method onBeforeSelect exist in datetimebox ?
or is there any event listener to OK button inside the chooser?

thank you in advance


Title: Re: Datetimebox format error
Post by: stworthy on April 15, 2015, 11:27:07 PM
Please refer to this updated example http://jsfiddle.net/c8kragem/1/


Title: Re: Datetimebox format error
Post by: aswzen on April 16, 2015, 12:03:53 AM
Wow thank you.. :D