60008 Error with Date Change in Invoke-AppDeployToolkit.ps1

Hi,

we get an 6008 error when changing the AppScriptDate variable in Invoke-AppDeployToolkit.ps1 with DeployAppScriptVersion = ‘4.0.5’ Date and Time is United Kingdom.

AppScriptDate = '13/06/2025' Produces 'An error occurred while running Invoke-AppDeployToolkit.ps1. Exit code: 60008'

Changing the AppScriptDate to ‘09/06/2025’ works fine. No other changes are made?

PowerShell only accepts ISO8601 or US-style dates for a System.DateTime object. Right now, you’re trying to specify for the 13th month, which is why your version using the 9th month worked (albeit as a date you didn’t intend to specify).

Please use one of those two formats and you’ll be fine, preferably ISO8601 because US dates are simply dumb.

2 Likes

:rofl:

Careful @mjr4077au, I understand what you mean, but you might have just offended the whole of the US userbase :grin:

I had to look to see whether I typed that first thing in the morning or late at evening :sweat_smile:. The mixed endianness of it just makes my Asperger brain wig out haha

1 Like

I hate that date format too but it does go inline with other dumb decisions.

1 Like