Fixing a few date issues I had with the script

I have markdown without the date value so I grab it from the filename.

Also some had seconds in the date format which broke things. Fixed that too.