Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, re, xmltodict
def convert_date(s):
if not s:
return s
d, m, y = s.split('/')
return '-'.join((y, m, d))