Java核心代码例程之:DateFormat.java
2008-01-05 08:39:51 来源:WEB开发网核心提示:import java.text.*;/** * Demo date formatting. ***/public class DateFormat{public static void main(String args[]) throws Exception{SimpleDateFormat sdf = new Si
import java.text.*;
/**
* Demo date formatting.
***/
public class DateFormat
{
public static void main(String args[]) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("MM.dd.yy kk.mm.ss.S");
System.out.PRintln(sdf.format(new java.util.Date()));
}
}
赞助商链接