$json = Get-Content '..\package.json' | Out-String | ConvertFrom-Json
$date1 = Get-Date -Date "01/01/1970" 
$date2 = Get-Date
$version = [long](New-TimeSpan -Start $date1 -End $date2).TotalSeconds
$json.version = [string]($version)
$json | ConvertTo-Json -depth 100 | Out-File "..\package.json"
Invoke-Sqlcmd -ServerInstance "localhost" -Username sa -Password fd086afe-0a79-473b-bb7d-ee59bc7cff38 -Query "update IHBoxSystem.CFG.Config set value=$version where [Key]='WebAppVersion'"



