Here you can find the source of getUtcDateString()
public static String getUtcDateString()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.*; public class Main { public static final String UTC_DATE_FORMAT = "MM/dd/yyyy KK:mm:ss a Z"; public static String getUtcDateString() { Date curDate = new Date(); SimpleDateFormat format = new SimpleDateFormat(UTC_DATE_FORMAT); return format.format(curDate); }//ww w . j a va 2s . c o m }