Possibility to save DATE (DD/MM/YYYY regex) in unix?
@zingaburga - hi, please is that somehow possible? I need to mark all threads with set "date older" (custom field in xthreads)... thank you
Sorry, I don't understand your question.
If you're looking to convert what the user enters into something else, you can use Input Formatter, Display Format and Input Field HTML to achieve that.
Hi, ok, first of all thank you for your reply.
Just to clarify my question:
- I have a box where you can select number of days (0, 3, 7, 14 etc.) I need to somehow store into the DB that 3 days is 259 200 seconds BUT user could see in the thread 3 days...
I know the last part, but I am struggling with input format - cannot find any documentation or an example.
Thank you
Should be like the other settings - set it to something like
<?=intval({VALUE})*86400?>
You could also use formatting map list too, so users see "3 days" while the value is its seconds equivalent.