3
Next, I need to make a 28-day calendar with the following criteria:
Every month should start the first day on Sunday, so this already formats the rest of the month.
It is necessary next to the calendar to go the number of the week, for example, week 1, week 2, week 3 and week 4, the following month returns to week 1..
I looked for something like this in the Jquery plugin of datepicker, but I didn’t find anything like it, so I think I need to do the same. Anybody got a tip? Thank you!
I need this because I want to make an administrative for a game, the game keeps the schedule as follows:
Every month, it starts on Sunday: Day 1 January, Sunday; Sunday, 1st of February;
And every month has 28 days
So every month will be the same
D S T Q Q S S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
On the left you need to have the number of the week, every month you will have 4 weeks, I do not want this number to be commutative, that is, every month the number of weeks reset! I think it’s now become clear
I don’t understand, do you want the calendar to have a maximum of 28 days? Then the user won’t be able to choose the month?
– Paulo
So.. the month system is normal.. the month needs to be 28 days because I need 4 weeks straight and closed, from Sunday to Monday...
– Hermus
What about the months with up to 31 days? What happens to those days that are left?
– Paulo
What if the first Sunday of the month is day 5? The user will never be able to choose the day ... 1, 2, 3, 4? This calendar you want to set up is kind of weird.
– Paulo
The bootstrap datepicker displays the number of the week http://jsfiddle.net/54h58y1r/
– Paulo
@Orion From what I understand he wants a year of 13 months, all with 28 days
– mathiasfk
So the system is for the administration of a game, and the game treats the calendar as follows: - Every month starts on Sunday, and every month has 28 days... some have 30 other 31 days.. the number of days of a month is limited... What will change is only the month... And the week that needs to be reset every 4 cycles...
– Hermus
@I think I understand what you want. It should not be difficult, but in fact you will have to make your own interface, since hardly a plugin will allow you a custom calendar at this point. I suggest you insert the Datepicker HTML to do something similar.
– mathiasfk
@mathiasfk because it’s old! My big question is to do this, I managed to make it clickable and such.. send the value to where I want, but I wanted to make a beautiful API like datepicker, that rolled the months and stuff.. But I don’t know how I do it :/
– Hermus
Guys, I don’t really know how Stack works, but I’m slowly getting to develop my program! When you have something concrete put for you! Thanks!
– Hermus
If I were you, I’d really get fixed.
– PauloHDSousa