简体   繁体   中英

how to get current date in MOMENT.JS Dynamic

Using Salesforce
apex:includeScript value="{!URLFOR($Resource.Fullcalendarzip, '/moment.min.js')}"

$(document).ready(function() {

    $('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
            },
            editable: true,
        defaultDate:  '2015-12-12',
        editable: true,
       events:[    ]
    });

How to get today's date default but defaultDate: '2015-12-12' ,over here its hard coded how to get the default today's date.

只需使用Javascript的new Date()即可获取今天的date

defaultDate: new Date(),

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM