from datetime import datetime


def datetimestr(format="%Y/%m/%d %H:%M:%S", thedate=datetime.now()):
    """
    Return current datetime in specific format.
    By default, use current datetime
    """
    return(thedate.strftime(format))