Please help me create a code for the below scenario.
My input is: Wed Mar 27 02:59:10 PDT 2019
Output needs to be in this format in EST time: 03/27/2019 05:59 Est
What have you tried?Show your code...
Split the string into its pieces, using that space...
'Wed Mar 27 02:59:10 PDT 2019' -split ' '
... and format back together how you'd like..
See these resources for your use case...
d Day of month 1-31dd Day of month 01-31ddd Day of month as abbreviated weekday namedddd Weekday nameh Hour from 1-12H Hour from 1-24hh Hour from 01-12HH Hour from 01-24m Minute from 0-59mm Minute from 00-59M Month from 1-12MM Month from 01-12MMM Abbreviated Month NameMMMM Month names Seconds from 1-60ss Seconds from 01-60t A or P (for AM or PM)tt AM or PMyy Year as 2-digityyyy Year as 4-digitz Timezone as one digitzz Timezone as 2-digitzzz Timezone