import java.util.Date;
import java.text.SimpleDateFormat;
public class DateTest {
  public static void main(String[] args) {

    Date DateName = new Date();
    SimpleDateFormat df =
            new SimpleDateFormat("d-MM-yyyy KK:mm a");
    System.out.println("Current DateTime is : " +
            df.format(DateName.getTime()));

    
    }
}