Skip to content

Instantly share code, notes, and snippets.

@kinuasa
Created October 19, 2023 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinuasa/2cf46636f864be104c6a2d9bb924163e to your computer and use it in GitHub Desktop.
Save kinuasa/2cf46636f864be104c6a2d9bb924163e to your computer and use it in GitHub Desktop.
全角文字を半角に変換するPowerShellスクリプト
Add-Type -AssemblyName 'Microsoft.VisualBasic'
$str = [Microsoft.VisualBasic.Strings]::StrConv('令和5年10月19日 01:23:45', [Microsoft.VisualBasic.VbStrConv]::Narrow, 1041)
Write-Output $str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment