fullcalendar/current_date/getDate.txt
2010-01-16 14:29:18 -08:00

19 lines
572 B
Text

getDate *1.4.2*
===============
Returns a Date object for the current date of the calendar.
<div class='spec' markdown='1'>
.fullCalendar( 'getDate' ) -> Date object
</div>
For month view, it will always be sometime between the first and last day of the month.
For week views, it will always be sometime between the first and last day of the week.
Example of displaying a calendar's current date when a button is clicked:
$('#my-button').click(function() {
var d = $('#calendar').fullCalendar('getDate');
alert("The current date of the calendar is " + d);
});