python using datetime as id code example Example: python using datetime as id import datetime datetime.datetime.now().strftime('%Y%m%d%H%M%S')