CodeIgniter Forums
Calendar class, is there a way to show previous month dates in current calendar - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Calendar class, is there a way to show previous month dates in current calendar (/showthread.php?tid=61631)



Calendar class, is there a way to show previous month dates in current calendar - harpreet - 05-02-2015

Hi,
I am trying to figure out if its possible to show up some of previous months dates in current calendar.
example
[Image: leftside_calender.gif]

This calendar shows greyed out dates from previous months.

What am I doing.
We have a requirement to show up date ranges of pay cycles. Now the pay cycles does cross a month.
In DB we have start_date and Period
The period saves values like "weekly, monthly, biweekly", so we calculate and get the end_date for the same.
I was able to generate all dates from Start to ends and feed it to the calendar library.

This all works fine for current month, but not for next month since we have new dates for next month.

thank you


RE: Calendar class, is there a way to show previous month dates in current calendar - freddy - 05-03-2015

i guess you should ask here https://forum.jquery.com/