Skip Navigation

[Resolved] Time Input Format

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by MattI4840 4 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1689553
24hrDropDown.png

Tell us what you are trying to do?

I have several date/time fields on various forms, the hour field is in 24 hour format, is there any way to have it appear in 12 hour format?

Is there any documentation that you are following?

https://toolset.com/documentation/customizing-sites-using-php/functions/#date

Is there a similar example that we can see?

Please see the attached image.

#1690207

Hello, right now the only built-in option is a 24-hour format hour input. 12-hour format inputs would require generic fields and a significant amount of custom code, where you would have to convert the User's date and generic hour/minute field selections into a timestamp, then save that value with the cred_save_data hook: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

#1690221

That is unfortunate, perhaps at some point I'll have the time to stub that all out for repeated use but today just isn't that day lol. I take it there aren't too many questions or requests for this, after searching the support tickets I didn't see much of anything, so it's not something that would be on your feature roadmap?