Dear Canvas,
I'm trying to make a 2 days countdown from current date using php. I manage to use php strtotime() function to add 2 days from current date. The problem arise is when injecting php variable to the jQuery script which we already knows as below:
The thing is that Javascript formats the Month as following:
0 as January
1 as February
2 as March
3 as April
4 as May
5 as June
6 as July
7 as August
8 as September
9 as October
10 as November
11 as December
How can I accomplish this since php date() function can never come up with value '0' that will represent January? Any workaround solution for this issue?
I attached the screenshot for my works and code snippet.
Thanks
