How to specify date and time format for submission.created_at in query string
-
Hi – hope all is well. Would really love some help with something.
I’m using Fluent Forms. On submit, I have it set to a URL redirect with a query string. I need one of the input options to be the submission date and time in a specific format. For example, March 20th, 2023 9:51:55am needs to render as 20230320095155. When I use the existing Fluent Forms smartcode in the URL for submission.created_at, it can only render it in one specific format, which is different to my needs. As a result, my link doesn’t work and I get a 404.
How can I specify the date format for submission.created_at? Or alternatively, what can I paste into functions.php that can define the format required for submission.created_at as it appears in the URL query string? I was only able to find information about changing the time/date format for the date form field, which is not what I’m trying to change.
Any help would be much appreciated – this has been driving me crazy!
- The topic ‘How to specify date and time format for submission.created_at in query string’ is closed to new replies.