def formatDateTime(raw: str) -> str:
    """
    Helper function. Converts Image exif datetime into Python datetime

    Args:
        raw (str): exif datetime string

    Returns:
        str - python compatible datetime string
    """
    
    datePieces = raw.split(" ")
    if len(datePieces) == 2:
        return datePieces[0].replace(":","-") + " " + datePieces[1].replace("-",":")
    else:
        return ""