time_string = '/Date(1409522400000+0200)/'
epoch = datetime(1970, 1, 1, tzinfo=timezone.utc)
ticks, offset = re.match('/Date\\((\\d+)([+-]\\d{4})?\\)/$', time_string
    ).groups()
utc_dt = epoch + timedelta(milliseconds=int(ticks))
print(utc_dt)
if offset:
    offset = int(offset)
hours, minutes = divmod(abs(offset), 100)
if offset < 0:
    hours, minutes = -hours, -minutes
dt = utc_dt.astimezone(timezone(timedelta(hours=hours, minutes=minutes)))
print(dt)
Convert weird Python date format to readable date