This topic is locked
[SOLVED]

 Enter in cooking time

7/15/2018 11:18:49 AM
PHPRunner General questions
gehrenfeld author

I have a recipes website.
When a users is adding or editing one of their recipes I want them to enter cooking time in the format 0:00
I tried making the filed a time type by it is set to take a time of day so it adds AM PM. I only want hours and minutes.
I tried a placeholder as a guide but some users don't see or ignore it, so they enter 230 or 02:00 when what I want is 2:30.
I tried Mask but that didn't work.
Any ideas
Thanks

Gary

HJB 7/15/2018
gehrenfeld author 7/15/2018



http://asprunner.com/forums/topic/8100-date-time-format-help/
P.S. https://xlinesoft.com/phprunner/docs/edit_as_settings_time.htm
Built-in timepicker feature, once activated, can ease data entry.


I tried time picker with 24 hour, but if you just put in minutes it inserts 12 in the hour.

I tried time picture with 12 hour clock and it insert AM PM.
Anyway to remove the AM PM?

HJB 7/15/2018

https://www.w3schools.com/sql/func_mysql_time_format.asp
... one way to format a field to use are PHP code snippets,

other is to format the field under MySQL which needs that you

use PHPMyAdmin from within your provider's Cpanel to run the

time formatting as wished ...