package com.codegym.task.task09.task0922;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/*
What's today's date?
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
SimpleDateFormat month_date = new SimpleDateFormat("MMM dd yyyy", Locale.ENGLISH);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String s=br.readLine();
//String s="2013-08-18";
Date date = sdf.parse(s);
String month_name = month_date.format(date);
System.out.println( month_name );
}
}
package com.codegym.task.task09.task0922;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/*
What's today's date?
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
SimpleDateFormat month_date = new SimpleDateFormat("MMM dd yyyy", Locale.ENGLISH);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// String s=br.readLine();
String s="2013-08-18";
Date date = sdf.parse(s);
String month_name = month_date.format(date);
System.out.println( month_name );
}
}