I have a requirement of converting times in different time zones to PST.
example if I give "03:30 AM CST" my method should return time in PST.
but its throwing following error:
Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Date
Can some one tel me what is mistake? and is htere a better/elegant way of doing this?
Thanks in advance!