Categories | Question details Back To List | ||||||||
Scheduler date format in scheduler.date.date_to_str("%format%") , have you teh php equivalent to %d and %m , with leading ceros? Thanks Answer posted by Support on Aug 31, 2009 02:39 There is no such functionality in current version ( we plan to add it in future ) If this requirement is critical for your use-case, you can contact us directly at support@dhtmlx.com, we will provide the necessary update. Answer posted by Gabriel on Sep 02, 2009 06:28 I don't want to abuse, if you have already done this update it will be great if you can send it. Thanlks Answer posted by Support on Sep 02, 2009 10:17 Updated version is attached to the post, it uses the same formating rules similar to PHP's date function. %d Day of the month, 2 digits with leading zeros %j Day of the month without leading zeros %m Numeric representation of a month, with leading zeros %n Numeric representation of a month, without leading zeros Attachments (1)
Answer posted by gabriel on Sep 02, 2009 10:26 You are great! Answer posted by Gabriel on Sep 02, 2009 11:07 I'm afraid something is wrong, i have: var sd=scheduler.getEvent(id).start_date; var ed=scheduler.getEvent(id).end_date; var convert = scheduler.date.date_to_str("%d/%m/%Y"); sd2 = convert( sd ); ed2 = convert( ed ); alert(sd2); // This is still giving me dates like : 9/8/2009 any clue? thanks Answer posted by Gabriel on Sep 02, 2009 11:52 Ignore my previous mesage, it's working ok. Thanls a lot |