Skip to content

Commit 429c844

Browse files
author
crazy
committed
5.5
1 parent 3f49e57 commit 429c844

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.xinan.string01;
2+
3+
import java.text.SimpleDateFormat;
4+
import java.util.Date;
5+
6+
public class DateDemo {
7+
public static void main(String[] args){
8+
Date d1=new Date();
9+
SimpleDateFormat ft=new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
10+
System.out.println(ft.format(d1));
11+
}
12+
}

0 commit comments

Comments
 (0)