- Issue created by @codebymikey
- Merge request !48Issue #3530530 by codebymikey: StrToTime: Support custom date formats → (Open) created by codebymikey
There are some date formats that can not be easily resolved with strtotime()
.
It'd be useful if the user could specify the custom format the date is in so that it can be parsed consistently.
Attempt to convert the date 30/06/2025 23:59:00
into time, it should ideally be parsed as mm/dd/yyyy format, but there's no easy way to parse that currently, except doing a somewhat hacky search and replace of the "/" with "-".
It'd be better if the plugin builder can specify the expected format of the date so that certain date formats can be easily converted to a date.
Provide issue fork/patch.
There should be a new "Custom date format" option on the plugin page. If it's not set, the previous strtotime()
behaviour will be kept.
N/A
Active
1.0
Code