use Shmasi date in sheduler

hello
I have installed scheduler script into my cakephp project and want scheduler to show date in shamsi format(not save in shamsi format but just showing)
please help me how i can do and which part of script should be changed.
Tkanks

There is no built in solution, but you can redefine the date template and use a custom function for correct date formatting

scheduler.templates.event_bar_date = scheduler.templates.day_date = function(js_date){ var date_as_string = some_custom_logic(js_date); return date_as_string; }

tanx for your kind reply
But I want to change date in all parts ( scheduler calender in day , week , year section and in lightbox ) in order to show shamsi date in all part but save on databse in gregorian date format .
please help me what I should do.

All dates in the scheduler can be altered through templates.

docs.dhtmlx.com/scheduler/day_vi … lates.html

I can not understand which one is for lightbox form section . I mean how can I change the date time form section in the lightbox form??