Turn off abbreviated time and date format
Désactiver le format abrégé de la date et de l’heure
Explanation
This policy setting allows you to show the longer time and date format in the system tray.
If this setting is enabled, the time format will include the AM/PM time marker and the date will include the year.
A reboot is required for this policy setting to take effect.
Ce paramètre de stratégie vous permet d’afficher le format de date et d’heure plus longs dans la barre d’état système.
Si ce paramètre est activé, le format d’heure inclut le marqueur d’heure AM/PM et la date inclut l’année.
Un redémarrage est nécessaire pour que ce paramètre de stratégie prenne effet.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer- Value name
TurnOffAbbreviatedDateTimeFormat
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: Taskbar/TurnOffAbbreviatedDateTimeFormat
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffAbbreviatedDateTimeFormat' -Value 1 -Type DWordDisable
# Disable: Taskbar/TurnOffAbbreviatedDateTimeFormat
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffAbbreviatedDateTimeFormat' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Taskbar/TurnOffAbbreviatedDateTimeFormat
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'TurnOffAbbreviatedDateTimeFormat' -ErrorAction SilentlyContinue