stat command not respecting time format options (High Sierra 10.13.6)

You need to place a S before B which converts the numerals (seconds since epoch) into string output.

stat -f "%SB" -t "%Y-%m-%d" ~/Pictures/to_backup/IMG_2115.JPEG