I have Time format in (yyyy-mm-ddTHH:mm+0:0000)..i need to convert this format to mm-dd-yyyy hh:mm am/pm using java program...any one help me to do this..thanx in advance...
Try something like this:
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm+s:SSSS");
Date date = format.parse(dateString);
format = new SimpleDateFormat("MM-dd-yyyy hh:mm a");
dateString = format.format(date);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With