Anyone ever used jclock and know how to remove the leading zero for the 12h setting?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
There is no direct way of doing this with jclock because it displays the time as per the format properties passed to it.
If you are comfortable changing the jclock code you can change the lines like this one
case "M": // minute as a decimal number return ((dateObject.getMinutes()to
case "M": // minute as a decimal number return dateObject.getMinutes();I’d advise you may be add you own format property, using a suitable name like “X” and return it without the leading zeros or whatever changes you prefer