Here in this, script is generating month’s HTML based on provided year and month. In Demo, the default the day series is displayed like below
SUN - MON - ***** - FRI - SAT [0,1,2,3,4,5,6]
I want to make it customized provide day series manually like below
MON - TUE - ***** - SAT - SUN [1,2,3,4,5,6,0]
or
SAT - SUN - ***** - THU - FRI [6,0,1,2,3,4,5,6]
or whatever random day series provided etc..
But I am struck in the starting itself. Someone please provide me suggestions to handle this efficiently.
You can add a
shiftargument to thegenerateHTML(), Which will shift the week daysshiftdays ahead.If you want
SAT - SUN - MON - ***** - FRI, you will need shift 1 day backward, which isgenerateHTML(-1).check out the demo.