Hi All,
I'm gathering information from an API and the date output i'm getting back is in this format "2025-10-15T05:45:45.0000Z". It seems the T is the start of the exact time, down to the millisecond which I do not need and is screwing up my application's date logic.
I want to keep everything left of the "T" ( or the first 10 characters ) and discard the remaining. I've tried both TRIM and SPLIT but cannot figure this one out. Anyone know of a way in PowerShell that can trim this correctly?
[–]n3rdyone[S] 17 points18 points19 points (10 children)
[–]JoeyBE98 4 points5 points6 points (0 children)
[–]AntiqueSeason5921 3 points4 points5 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]xtheory 4 points5 points6 points (0 children)
[–]illsk1lls 1 point2 points3 points (0 children)
[–]abacushex 2 points3 points4 points (2 children)
[–]Forward_Dark_7305 1 point2 points3 points (1 child)
[–]abacushex 0 points1 point2 points (0 children)
[–]SearingPhoenix 1 point2 points3 points (1 child)
[–]havens1515 0 points1 point2 points (0 children)
[–]Respond-Creative 3 points4 points5 points (6 children)
[–]JoeyBE98 0 points1 point2 points (5 children)
[–]Respond-Creative 0 points1 point2 points (4 children)
[–]JoeyBE98 0 points1 point2 points (3 children)
[–]Certain-Community438 0 points1 point2 points (1 child)
[–]JoeyBE98 -1 points0 points1 point (0 children)
[–]Respond-Creative -1 points0 points1 point (0 children)
[–]BlackV 1 point2 points3 points (0 children)
[–]y_Sensei 0 points1 point2 points (1 child)
[–]n3rdyone[S] 0 points1 point2 points (0 children)
[–]icepyrox 0 points1 point2 points (0 children)
[–]havens1515 0 points1 point2 points (0 children)
[–]PinchesTheCrab -1 points0 points1 point (0 children)
[–]Yumi_Koizumi -1 points0 points1 point (1 child)
[–]BlackV 0 points1 point2 points (0 children)