2

I have found solutions for GNU date, but not for BSD date. I would rather not make an if, etc. before I know if there's a built in way.

1 Answer 1

3

To convert October to 10, for example (I have Swedish locale)

date -jf %B Oktober '+%m'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.