Help With invoke powershell code

Hi friends,

I have a working powershell script for subject line while sending outlook mail.

$Mail.Subject= “XXXXX XXXXX : $(get-date -Format hh:00) PM Update”

I need to modify the above script to get 2 hours prior to the current time.

@sachinns

Check below for your reference

Hope this will help you

Thanks

@Srini84 Thanks for the reply. It didnt worked when i tried. Could you modify the above script to get 2 hours prior to the current time.