Java Now formatNow(String style)

Here you can find the source of formatNow(String style)

Description

format Now

License

Apache License

Declaration

public static String formatNow(String style) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

public class Main {

    public static String formatNow(String style) {
        return new SimpleDateFormat(style).format(System.currentTimeMillis());
    }//from  www .ja  v  a 2s  .  co m

    public static String format(Object time, String style) {
        return new SimpleDateFormat(style).format(time);
    }
}

Related

  1. formatNow()
  2. formatNow()
  3. formatNow()
  4. formatNow(String fmt)
  5. formatNow(String pattern)
  6. formatTime(Date now, String pattern)
  7. getAllnowTime()
  8. getDisplayDateNow()
  9. getFormatNowDateTime(String formatStr)