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'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .