formathelper.java

来自「Athena酒店小组_Athena酒店管理系统」· Java 代码 · 共 37 行

JAVA
37
字号
/*
 * FormatHelper.java
 *
 * Created on 2007年5月26日, 下午4:37
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package helper;

import java.util.*;
import java.text.*;
/**
 *
 * @author Virlene Cheng
 */
public class FormatHelper
{
    
    /** Creates a new instance of FormatHelper */
    public FormatHelper()
    {
    }
    
    public static String getNowDateFormat()
    {
	return getDateFormat(new Date(System.currentTimeMillis()));
    }
    
    public static String getDateFormat(Date date)
    {
	return DateFormat.getDateInstance().format(date);
    }
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?