-
- 436 Posts
My initial thought is that it might just be an inherited function of the standard php strtotime that's used by MODX. That accepts tomorrow, yesterday, fortnight, now & today in it's input. Might also explain why it's not explicitly stated in the documentation as a specifically designed feature of MODX, and why a keyword search of all the MODX code comes up lacking.
-
- 24,544 Posts
-
- 13 Posts
Did it work for someone? I also search a way to store the createdon date in a date TV's default value. It's kind of the same problem. It doesn't even seem to work when I enter a time stamp for the default value.
-
- 24,544 Posts
Dates are stored as timestamps, but when you enter them, they need to be human-readable dates. They're converted to timestamps when saved to the DB.
I'm having trouble figuring out why you'd want that in a date TV since it's already stored in the createdon field, which is much faster to retrieve.
-
- 13 Posts
"@CHUNK MyChunk" with "[[+createdon:strtotime:date=`%d-%m-%Y`]]" also didn't work. When entering dd-mm-yyyy as standard value it works. Maybe when accessed by getResources the tv doesn't know to which resource it belongs.