Page 1 of 1

script for power shell command

Posted: 25 Dec 2022 12:24
by ghorbat1
hi please help me for change script power shel to xyplorer

I would change get-date -format ($culture.DateTimeFormat.LongDatePattern) to get modified file


thanks


$cultures = [globalization.cultureinfo]::GetCultures(“allCultures”) |

where-object {$_.name -match ‘^fa’}

foreach ($c in $cultures)

{

$culture = New-Object system.globalization.cultureinfo($c)

$date = get-date -format ($culture.DateTimeFormat.LongDatePattern)

New-Object psobject -Property @{“name”=$culture.displayname; “date”=$date}

}