20 lines
565 B
Plaintext
20 lines
565 B
Plaintext
|
|
getDate *1.4.2*
|
|
===============
|
|
|
|
Returns a Date object for the current date of the calendar.
|
|
|
|
<div class='spec' markdown='1'>
|
|
.fullCalendar( 'getDate' ) -> Date
|
|
</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);
|
|
});
|