List of usage examples for java.text SimpleDateFormat SimpleDateFormat
public SimpleDateFormat(String pattern)
SimpleDateFormat
using the given pattern and the default date format symbols for the default java.util.Locale.Category#FORMAT FORMAT locale. From source file:Main.java
public static String getSMillon(long time) { return new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss-SSS").format(time); }
From source file:Main.java
public static SimpleDateFormat getTimeFormat() { return new SimpleDateFormat("dd/MM/yyyy kk:mm"); }
From source file:Main.java
public static SimpleDateFormat getFormatDays() { return new SimpleDateFormat("dd"); }
From source file:Main.java
public static String getMillon(long time) { return new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(time); }
From source file:Main.java
public static String getDate() { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String date = sdf.format(new java.util.Date()); return date;//from www. ja v a 2 s . c om }
From source file:Main.java
public static String getSimpleDateFormat9(long time) { return new SimpleDateFormat("yyyyMMddHHmmssSSS").format(time); }
From source file:Main.java
public static String getTime() { return new SimpleDateFormat("HH:mm:ss").format(new Date()); }
From source file:Main.java
public static String getTime(long time) { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return df.format(time * 1000l); }
From source file:Main.java
public static String getDateTimeYMDString(long time) { return new SimpleDateFormat("yyyy/MM/dd").format(time); }
From source file:Main.java
public static SimpleDateFormat getFormat(String partten) { return new SimpleDateFormat(partten); }