Java tutorial
//package com.java2s; public class Main { /** * Reformat an RRULE style UNTIL to an EAS style until */ static String recurrenceUntilToEasUntil(String until) { StringBuilder sb = new StringBuilder(); sb.append(until.substring(0, 4)); sb.append(until.substring(4, 6)); sb.append(until.substring(6, 8)); sb.append("T000000Z"); return sb.toString(); } }