def extractDateTime(datetimestr):
    """
        This function extracts the date and time from the server format to the
        format used in csv export
    """
    return datetimestr[:-8].replace('T',' ')