Here you can find the source of getYYMMDD(int i)
public static String getYYMMDD(int i)
//package com.java2s; /*// w w w . j a v a 2 s.c o m * All GTAS code is Copyright 2016, Unisys Corporation. * * Please see LICENSE.txt for details. */ import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main { public static String getYYMMDD(int i) { //TVL ddmmyy Date date = new Date(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.HOUR, i); date = cal.getTime(); SimpleDateFormat df = new SimpleDateFormat("yyMMdd:hhmm"); return df.format(date); } }