Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8793753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:09:48+00:00 2026-06-13T23:09:48+00:00

I have an HTML5 that uses an <input> tag with typetime which submits into

  • 0

I have an HTML5 that uses an <input> tag with type"time" which submits into MySQL using PHP. The problem is, the "time" is using a 24 hour format 00:00:00 which doesn’t make sense to the end user.

I want to be able to have the user enter it in 12 hour format and also have it display on a separate page where the results are posted from MySQL in a 12 hour format.

What’s the easiest way to do this? It’s a website that keeps track of when a customer walks in and leaves the lab. So being able to subtract those results is crucial. What I have right now (the 24 hour format) works just fine for our purposes (and subtracts to display total time spent) but the 24 hour format is an issue which if solved could be very useful to us.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:09:48+00:00Added an answer on June 13, 2026 at 11:09 pm

    The only way I can see doing this is to set the min and max values for the input to 01:00:00 and 12:59:59, respectively, and add a drop down menu for selecting AM or PM next to it.

    Of course by doing this you’ll have convert all the times back to 24-hour when the user submits the form, so you can store them in the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that has placeholders for input fields. It uses html5 placeholder
I have external html5 canvas that you can paint on some lines using your
I have a <span> that I want to rotate. I am using HTML5, CSS3,
Greetings, I have a jqueryui autocomplete input that uses an ajax call to populate
I have a HTML form that uses unobtrusive validation in my website which is
I have some code that uses a multi-part form and HTML5 file object to
I have created a word dictionary that uses PHP and XML. The user enters
I have a php script that uses something like this. But for some reason
I have an account database on my Mac that uses HTML, Javascript & PHP
I have an input box that uses jQuery autocomplete. I'd like to add a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.