fullcalendar/current_date/getDate.txt

20 lines
565 B
Plaintext
Raw Normal View History

2010-01-16 23:29:18 +01:00
getDate *1.4.2*
===============
Returns a Date object for the current date of the calendar.
<div class='spec' markdown='1'>
.fullCalendar( 'getDate' ) -> Date
2010-01-16 23:29:18 +01:00
</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);
});