Insert new event according to the day of the week

Asked

Viewed 120 times

2

I wonder if it is possible to insert a new event, only according to the day of the week, ignoring the days of the month.

So far, I managed to insert new events in run-time, but only passing the date in the format, yyyy-mm-dd.

$('#btn').click(function(){
        $('#calendario').fullCalendar(
            'renderEvent',
            {
                title: 'Novo evento',
                start: '2016-04-06T08:00:00',
                end:'2016-04-06T10:30:00'
            }
            );
    });  

I would like to know if it is possible to insert the data according to the day of the week (mon, ter, qua, qui, sex ...). ?

  • Would this day of the week be pre-defined, as the current day, or according to a selection? Maybe it will help you: http://momentjs.com/docs/#/manipulating/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.