I have string date 2020-07-05 22:44:59 in string format, I parse it with SimpleDateFormat with "yyyy-MM-dd HH:mm:ss a z" date pattern but it gives me date like Sun Jul 05 22:44:59 IST 2020. So how I can get date in "yyyy-MM-dd HH:mm:ss a z" format in date object.
Input : 2020-07-05 22:44:59 Output : 2020-07-05 22:44:59
I want output int the same format like input.
Thanks for Helping me.