StrtoTime: Allow using a custom date format

Created on 17 June 2025, 15 days ago

Problem/Motivation

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.

Steps to reproduce

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 "-".

Proposed resolution

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.

Remaining tasks

Provide issue fork/patch.

User interface changes

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.

API changes

N/A

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024