Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithYou are on the correct track, but the date() function needs TWO parameters, the string to be converted, and the format that the expected data will be in:
cdate=date(str(Created),"CCYY-MM-DD") #must use the correct date formatting here
In BRE, if you place the cursor on the word "date" above and hit F1, it will bring up a long list of various formatting options available.