GeoffZhu / vue-event-calendar

A simple events calendar for Vue2, no dependencies except Vue2.
http://geoffzhu.cn/vue-event-calendar/
635 stars 228 forks source link

select day #72

Open nunob87 opened 6 years ago

nunob87 commented 6 years ago

Hello, How do I select events from the current day only?

this does not work this.$EventCalendar.toDate(this.year + '/' + this.month + '/' + new Date().getDate())

thank you

ghost commented 6 years ago

make sure your format is right. this.year should be in YYYY format and so on. for example. this.$EventCalendar.toDate('2017/11/29') Make sure your new Date().getDate() returning the needed value.

nunob87 commented 6 years ago

It's not the selection of the day I want in the calendar

does nothing this.$EventCalendar.toDate('2017/11/29')

GeoffZhu commented 6 years ago

Did you have any demo? I try this.$EventCalendar.toDate('2017/11/29'), It's work fine.

nunob87 commented 6 years ago

I already solved the problem. thank you

RALMAZ commented 6 years ago

@nunob87 how?

nunob87 commented 6 years ago

@RALMAZ I developed the code for my needs

RALMAZ commented 6 years ago

@nunob87 i have a problem - this.$EventCalendar.toDate('2017/11/29') cant select events in data This only change calendar month and block $emit day change :crying_cat_face:

You have this problem before?