EasyUI Forum
September 15, 2025, 07:10:45 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datetimebox format error  (Read 7336 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« 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   Shocked

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

 Huh
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
« Last Edit: April 15, 2015, 09:17:54 PM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 15, 2015, 11:27:07 PM »

Please refer to this updated example http://jsfiddle.net/c8kragem/1/
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: April 16, 2015, 12:03:53 AM »

Wow thank you.. Cheesy
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!