diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index dbe6438c28a7..dded6a346343 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -55,7 +55,7 @@ if (!$ReleaseDate) } else { - $ParsedReleaseDate = ([datetime]$ReleaseDate, 'MM/dd/yyyy', [Globalization.CultureInfo]::InvariantCulture) + $ParsedReleaseDate = [datetime]$ReleaseDate } $releaseDateString = $ParsedReleaseDate.ToString("MM/dd/yyyy")