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 6939711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:39:25+00:00 2026-05-27T12:39:25+00:00

I am using trent richardson’s timepicker and I want to format my time so

  • 0

I am using trent richardson’s timepicker and I want to format my time so it looks like this below:

00 Hrs 00 Mins 00 Secs

At the moment my time format code is this: timeFormat:'hh:mm:ss', which displays 00:00:00

Now I tried timeFormat:'hh Hours mm Mins ss Secs', but it displays this 00 Hr0 00 Min0 00 Sec0.

This is because 's' in the time Format code is part of seconds so it will display 0.

So for me to be able to format the time to the way i want it, is there a way I can use concatenation to join the time format and strings together? for example timeFormat:'hh' + Hrs + 'mm' + Mins ... for example, or do I have to hack into js source code and change ‘s’ ans ‘ss’ to something else. I don’t really want to hack into js file because then it will make the code seem bit meaningless (for example if I change 's' to 'q', if someone reads q they won’t know what it means).

Thanks

timepicker website is here if you want to look at it: click here

  • 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-05-27T12:39:25+00:00Added an answer on May 27, 2026 at 12:39 pm

    Alright, with a bit of hard work I may have found a solution.

    In the addon file replace lines 856 to 860 by this code :

    case 'hh': return ('0' + hour).slice(-2)+' hours';
    case 'h':  return hour;
    case 'mm': return ('0' + time.minute).slice(-2)+' Mins';
    case 'm':  return time.minute;
    case 'ss': return ('0' + time.second).slice(-2)+' Secs';
    

    In your JS set the timeFormat to “hh mm ss”… and it should it work !

    Carefull though… You’ll always have the “Hours”, “Mins” and “Secs” appearing !!

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

Sidebar

Related Questions

I'm using this great jQuery timepicker http://trentrichardson.com/examples/timepicker/ It gives a string something like 07/20/2011
Am using trent's timepicker addon for generating timepicker in a tabular format. with start
Using CI for the first time and i'm smashing my head with this seemingly
I am using the jquery Trent Richardson datetimepicker addon which is working fine when
Using http://trentrichardson.com/examples/timepicker/ for editing date time fields. When I click the input field, the
I'm currently using http://trentrichardson.com/examples/timepicker/ . I want when the user drags the minute slider
I am using datimepicker (from: http://trentrichardson.com/examples/timepicker/ ) however I cannot save the picket date-time
I am using a date time picker and the date format is in MM/dd/yyyy,
I've done some php dev and the big trend in this language is using
Using a populated Table Type as the source for a TSQL-Merge. I want to

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.