$today = (get-date).tostring("MM-dd-yyyy")
Code to format date in the past
get-date).AddDays(-365).tostring("MM/dd/yyyy") $today = (get-date).tostring("MM-dd-yyyy")
Code to format date in the past
get-date).AddDays(-365).tostring("MM/dd/yyyy")