Java UTC Date getUtcDateString()

Here you can find the source of getUtcDateString()

Description

get Utc Date String

License

Apache License

Declaration

public static String getUtcDateString() 

Method Source Code

//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
}

Related

  1. getUTCCalendar(Calendar value)
  2. getUTCCalendarFromDialogString(String dateString)
  3. getUTCDate()
  4. getUtcDate(String date, String pattern)
  5. getUTCDateFromString(String date)
  6. getUtcDateStringFromTimestamp(Date timeStamp)
  7. GetUTCdatetimeAsString()
  8. GetUtcNow()
  9. getUTCTime()