How Can I Select A.m Or P.m Time In Timepicker?
I'm getting difference between two dates excluding weekend.But I want to get the time A.M at the end of the day.Because If staff start to work at the p.m then I want to add permiss
Solution 1:
use this
SimpleDateFormatdateFormat=newSimpleDateFormat("dd-MMM-yy hh.mm.ss.S aa");
StringformattedDate= dateFormat.format(newDate()).toString();
System.out.println(formattedDate);
you will get 11-Aug-05 12.25.15.375 PM
Post a Comment for "How Can I Select A.m Or P.m Time In Timepicker?"