in scheduler.date.date_to_str("%format%") , have you teh php equivalent to %d and %m , with leading ceros? Thanks
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.
I don’t want to abuse, if you have already done this update it will be great if you can send it. Thanlks
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
dhtmlxscheduler.zip (19.5 KB)
You are great!
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
Ignore my previous mesage, it’s working ok. Thanls a lot