
I had a few months worth of photos on my phone that needed to be imported and sorted.
All I wanted to do was move the photos into monthly folders. So I found exiftool that had some options that did what I wanted.
If you have Homebrew on mac you can install it like this.
brew install exiftool
Here is the command I used to move my photos.
exiftool -d %m "-directory<datetimeoriginal" *.jpg
exiftool -d %m "-directory<datetimeoriginal" *.JPG
If you wanted to move them into year/month folders, it would go something like this
exiftool -d %Y/%m "-directory<datetimeoriginal" *.jpg
exiftool -d %Y/%m "-directory<datetimeoriginal" *.JPG
Have a look at the docs and organize away.