Hallo Jungs Ich habe dies in Powershell:Powershell -Datum
Ich habe eine Sammlung, die ein CustomProp namens „rep_date“ hat, die ein Datum im Format enthält: mm/tt /, jetzt will ich es retten das Datum in diesem Format: tt/mm/jjjj, versuchen im diesen Ansatz:
For ($i=0;$i –le $HD.count; ++$i)
{
$B = $HD[$i].CustomProps[‘rep_date’] = Get-Date –date $HD[$i].CustomProps[‘rep_date’] -format "dd.mm.yyyy"
$HD[$i].CustomProps[‘rep_date’] = $B
}
aber funktioniert nicht.
Irgendwelche Ideen, wie dies zu erreichen ist?
Beste Grüße !!!