package com.weebly.delta76;

package com.codevergence.mail;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Test {
    public static void main(String[] args){
        Calendar cal = Calendar.getInstance();
        String strDateFormat = "hh:mm:ss ";
         SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
         
         System.out.println("Time with AM/PM field : " + sdf.format(cal.getTime()));
    }
}

 


Comments




Leave a Reply