Here you can find the source of getMSDateTimeString(Date date)
Parameter | Description |
---|---|
date | a parameter |
public static String getMSDateTimeString(Date date)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { static SimpleDateFormat msfLong = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); /**// w ww. j a va2s .c o m * MSTYPE yyyy-MM-dd hh:mm:ss return * @param date * @return */ public static String getMSDateTimeString(Date date) { String result = null; if (date != null) { result = msfLong.format(date); } return result; } }