#set creationDate and effectiveDate to a given
datedate="-".join(traverse_subpath)
try:
d= DateTime(date)
except:
return "problem with subpath '%s'. usage: setdate/YYYY/MM/DD" % date
context.setModificationDate(date)
context.setCreationDate(date)
context.setEffectiveDate(date)
context.reindexObject()
return "date on '%s' successfully set to %s." % (context.title_or_id(), date)