PEATSA/WebApp/UtilityFunctions.py
def CreateDateString():

	'''Creates a date string in the format yyyy-mm-dd hh:mm:ss
	
	This format is acceptable for insertion as a DATETIME value in SQL'''

	date = datetime.datetime.today()
	string = "%s-%s-%s %s:%s:%s" % (date.year, date.month, date.day, date.hour, date.minute, date.second)
	return string
Creates a date string in the format yyyy-mm-dd hh:mm:ss
	
	This format is acceptable for insertion as a DATETIME value in SQL
Creates a date string in the format yyyy-mm-dd hh:mm:ss
This format is acceptable for insertion as a DATETIME value in SQL
Creates a date string in the format yyyy - mm - dd hh : mm : ss This format is acceptable for insertion as a DATETIME value in SQL
def CreateDateString():
	date = datetime.datetime.today()
	string = "%s-%s-%s %s:%s:%s" % (date.year, date.month, date.day, date.hour, date.minute, date.second)
	return string
def CreateDateString ( ) : date = datetime . datetime . today ( ) string = "%s-%s-%s %s:%s:%s" % ( date . year , date . month , date . day , date . hour , date . minute , date . second ) return string
Creates a date string in the format yyyy-mm-dd hh:mm:ss
This format is acceptable for insertion as a DATETIME value in SQL
Creates a date string in the format yyyy - mm - dd hh : mm : ss This format is acceptable for insertion as a DATETIME value in SQL
'''Creates a date string in the format yyyy-mm-dd hh:mm:ss
	
	This format is acceptable for insertion as a DATETIME value in SQL'''