Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Date-format/Java/date-format-4.java
Normal file
11
Task/Date-format/Java/date-format-4.java
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class DateFormat {
|
||||
public static void main(String[]args){
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
SimpleDateFormat formatLong = new SimpleDateFormat("EEEE, MMMM dd, yyyy");
|
||||
System.out.println(format.format(new Date()));
|
||||
System.out.println(formatLong.format(new Date()));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue