Skip to content

Instantly share code, notes, and snippets.

View shaneburger's full-sized avatar

Shane Burger shaneburger

  • Woods Bagot / Smartgeometry
  • New York
View GitHub Profile
@Joilence
Joilence / roam-obsidian-date-convert.py
Last active January 31, 2024 19:00 — forked from jenningsb2/roam-obsidian-date-convert.py
Convert date format in file names and contents from Roam Research default style to Obsidian default style.
import re
import os
from dateutil.parser import parse
path = '' #insert file path to your vault here
### Convert date format in file content
for root, dirs, files in os.walk(path):
files = [f for f in files if re.match(r'.*\.md', f)] # only keep files end with `.md`