I was able to get the current time but it fetches the time in another timezone(GMT) and I want to display the timezone in CET. What should I change in my script?
pwsh: |
$date=$(Get-Date -format yyyyMMdd-Hmm)
Write-Host "##vso[task.setvariable variable=currentTimeStamp]$date"
displayName: 'Getting timestamp'
For CEST, change your code as follows:
For CET, change your code as follows: