How to make past date unselectable in fullcalendar?

I have done this in my fullcalendar and it’s working perfectly. you can add this code in your select function. select: function(start, end, allDay) { var check = $.fullCalendar.formatDate(start,’yyyy-MM-dd’); var today = $.fullCalendar.formatDate(new Date(),’yyyy-MM-dd’); if(check < today) { // Previous Day. show message if you want otherwise do nothing. // So it will be unselectable … Read more

Formatting ToShortDateString to dd/MM/yyyy

ToShortDateString does not have an overload which takes any parameter. If your ToShortDateString() returns MM/dd/yyyy format, that means your CurrentCulture has this format in it’s ShortDatePattern property. You can always use custom formatting for that like with proper culture like; TextBox2.Text = DateTime.Today.ToString(“dd/MM/yyyy”, CultureInfo.InvariantCulture);

How can I calculate what date Catholic Good Friday falls on, given a year?

Here’s a great article that should help you build your algorithm http://www.codeproject.com/KB/datetime/christianholidays.aspx Based on this example, you should be able to write: DateTime goodFriday = EasterSunday(DateTime.Now.Year).AddDays(-2); Full Example: public static DateTime EasterSunday(int year) { int day = 0; int month = 0; int g = year % 19; int c = year / 100; int … Read more