0
Answered

Can i create a folder with hebrew date name?

m-r 12 months ago updated by Michael J. Radwin 11 months ago 3

I want to use hebrew date in powershell in order to creade folder whith hebrew date name

Answer

Answer

You could run the Hebcal CLI (command-line interface) as part of your powershell script and capture the output into an environment variable.

https://github.com/hebcal/hebcal


The Hebcal CLI is written in Go, so it's cross-platform and should compile/run just fine on Windows.


Here's what it looks like on Linux/macOS -- should be the same on Windows

$ hebcal -T -h -x | head -1
28th of Iyyar, 5783
$ hebcal -T -h -x --lang=he | head -1
כ״ח אִיָיר תשפ״ג
$

Answer

You could run the Hebcal CLI (command-line interface) as part of your powershell script and capture the output into an environment variable.

https://github.com/hebcal/hebcal


The Hebcal CLI is written in Go, so it's cross-platform and should compile/run just fine on Windows.


Here's what it looks like on Linux/macOS -- should be the same on Windows

$ hebcal -T -h -x | head -1
28th of Iyyar, 5783
$ hebcal -T -h -x --lang=he | head -1
כ״ח אִיָיר תשפ״ג
$

thank you for the answer,

My problem is that I don't know how to get today's Hebrew date into a parameter to use it in powershell

Answered

Hi, thanks for using Hebcal.

From reading an article that Microsoft posted, I believe it's possible to use Unicode characters in a folder name

https://learn.microsoft.com/en-us/windows/win32/intl/character-sets-used-in-file-names