Probleme Modification du format date dans un csv
Bonjour,
je voudrais modifier dans le champs date 'TER Position' le format de MM/dd/yyyy en dd/MM/yyyy
J'ai fait le code suivant sans succes
Code:
1 2 3 4 5 6 7
| $csv = Import-Csv -LiteralPath $SOURCE -Encoding UTF8 -Delimiter ";"
$csv = $csv | Select-Object *, @{
label='Date'
expression={[datetime]::ParseExact($_."Date TER Position", "MM/dd/yyyy", [Globalization.CultureInfo]::InvariantCulture).ToString("dd/MM/yyyy")}
}
$csv | Export-Csv -Path $TEMPO -Delimiter ";" -NoTypeInformation |
Quelle syntaxe il faut utiliser pour mettre a jour Date TER Position sans creer de nouvelle colonne.