Hi Edwin,
Thanks for the reply. We appreciate your time and hope that your query is responded soon.
Regards,
Peer Samie
Microsoft Community-Moderator
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
The date property goes one day back when I convert it to Json and directly convert it back.
Get-Date | Select-Object -Property *
DateTime : monday 18 february 2019 09:45:59
Date : 18-2-2019 00:00:00
Get-Date | Select-Object -Property * | ConvertTo-Json | ConvertFrom-Json
DateTime : monday 18 february 2019 09:45:59
Date : 17-2-2019 23:00:00
Looks like a bug to me.......
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi Edwin,
Thanks for the reply. We appreciate your time and hope that your query is responded soon.
Regards,
Peer Samie
Microsoft Community-Moderator
Hi Peer,
ok I have posted it is now on.....
Regards
Edwin
Hi Edwin,
We do have a dedicated support forum for programmers and developers. Since the command uses the ConvertTo-Json and ConvertFrom-Json cmdlets to convert a DateTime object from the Get-Date cmdlet to a JSON object then to a PSCustomObject, I would suggest to post your query on MSDN Forums.
Regards,
Peer Samie
Microsoft Community-Forums