使用SimpleDateFormat格式化日期
来源:互联网 发布:js防水涂料厚度规范 编辑:程序博客网 时间:2024/05/29 18:33
import java.text.SimpleDateFormat;import java.util.Date;public class SimpleDateFormatDemo {public static void main(String[] args) {SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");System.out.println(sdf.format(new Date()));}}
控制台输出:
0 0
- 使用SimpleDateFormat格式化日期
- 使用SimpleDateFormat格式化日期
- 使用SimpleDateFormat格式化日期
- 使用 SimpleDateFormat 类格式化日期
- 使用 SimpleDateFormat 格式化日期和使用printf格式化日期
- java 使用simpleDateFormat格式化日期 时间
- java 使用simpleDateFormat格式化日期 时间
- java 使用simpleDateFormat格式化日期 时间
- java 日期格式化-- SimpleDateFormat 的使用
- 日期格式化类SimpleDateFormat
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- SimpleDateFormat格式化日期
- muduo源码分析--详解muduo多线程模型
- jquey和普通js的执行时间
- 游戏背景之滚动地图背景(CCParallaxNode)的使用
- 工厂模式
- 学会感恩,学会分享,开始总结自己的职场经验
- 使用SimpleDateFormat格式化日期
- bootstrap3 用户界面架构学习 ----栅格系统
- ORA-01031:insufficient privileges
- 打开文件
- Sigslot
- MySQL修改用户密码与导入SQL文件
- css 图片变灰
- 使用分析函数改写cube,使其一步满足需求
- Jquery mobile 1.4.2----CSS Framework