import java.text.SimpleDateFormat;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(sdf.format(new Date()));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(sdf.format(new Date()));
解决方案 »
- java 项目编译 exe
- 急求JB编译器的可执行文件?
- 使用socket进行通断的测试,速度慢,求解!
- jpanel 怎样放大缩小呢?如果不重绘其中所有东东,仅仅像放大镜那样放大?
- 问一个基本的问题,谢谢指教!
- java.lang.reflect.InvocationIargetException
- 能不能设计一个通用模块,能用它检测到程序中某指定变量的值?
- 请教高手:Java 中如何使用ActiveX?
- -----------请问各位,有没有用JBUILDER操作数据库的实例原码,不是用组件-------时刻在线等待!!!------
- Rose进行JavaOOM的超级菜问题No.1:如何设置一个类MyButton成为JButton类的子类
- java 如何为仪器开发应用程序?
- APPLET在IE中的使用
java.sql.Timestamp ts = new java.sql.Timestamp(System.currentTimeMillis());System.out.println(ts.toString().substring(0,19));
//ok!!
System.out.println(time);