Publishing Outlook Calendars. What is the server-side setting for sync frequency?

CalDAV (Calendaring Extensions to WebDAV, documented in RFC-4791) uses the iCalendar (Internet Calendaring and Scheduling Core Object Specification, documented in RFC-5545, not to be confused with Apple’s iCal) format for the data exchange. iCalendar accommodates non-standard properties that start with a “X-” prefix. X-PUBLISHED-TTL is the property that maps to the recommended update interval for … Read more

Get first date of current month in java

try Calendar c = Calendar.getInstance(); // this takes current date c.set(Calendar.DAY_OF_MONTH, 1); System.out.println(c.getTime()); // this returns java.util.Date Updated (Since Java 8): import java.time.LocalDate; LocalDate todaydate = LocalDate.now(); System.out.println(“Months first date in yyyy-mm-dd: ” +todaydate.withDayOfMonth(1));

Difference between Calendar.HOUR and Calendar.HOUR_OF_DAY?

From http://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#HOUR: Calendar.HOUR = Field number for get and set indicating the hour of the morning or afternoon. HOUR is used for the 12-hour clock. E.g., at 10:04:15.250 PM the HOUR is 10. Calendar.HOUR_OF_DAY = Field number for get and set indicating the hour of the day. HOUR_OF_DAY is used for the 24-hour clock. E.g., … Read more

How to tackle daylight savings using TimeZone in Java

This is the problem to start with: Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(“EST”)); The 3-letter abbreviations should be wholeheartedly avoided in favour of TZDB zone IDs. EST is Eastern Standard Time – and Standard time never observes DST; it’s not really a full time zone name. It’s the name used for part of a time zone. (Unfortunately … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)