javascript - Full Calendar Get current date -
i've been learning ruby on last year , i'm new js i'll try explain best can.
i using adam shaw's full calendar plugin. want current month viewing (and use limit how far in future or past user can navigate, that's not problem).
i can current date, sort of. but, because of lack of js knowledge i'm not sure how access date.
here relevant section of config file,
viewrender: function(view){ var maxdate = "<%= finish.strftime('%y/%m/%d') %>"; var currentdate = $('#calendar').fullcalendar('getdate'); console.log(currentdate); if (view.start > maxdate){ header.disablebutton('prev'); } } when inspect console log see being output click through months.

so can see displaying current date in view. question how access _d bit of moment variable can use it?
my understanding moment class instance , stuff in dropdown attributes, correct interpretation?
fullcalendar's getdate returns moment object, need moment's todate() method date out of it.
so, in code try:
console.log(currentdate.todate()); and should return date object.