Forums

Date - Time Picker

arueder 30 Jul, 2011
Is there any way to force the time to be shown as a 12 hour format instead of 24 hour?
GreyHead 31 Jul, 2011
Hi arueder ,

Try changing the format to one that uses the 12 hour clock + am/pm

Bob
arueder 31 Jul, 2011

Hi arueder ,

Try changing the format to one that uses the 12 hour clock + am/pm

Bob



How do you change the format? The only option I have is the "datetime box" element which doesn't have any settings to change the format from 24 to 12.

Sorry.....noob Joomla! user. :?
Tenwolde 31 Jul, 2011
I have got the same problem, no settings for the date and time....
GreyHead 31 Jul, 2011
Hi arueder ,

Use the Custom DatePicker action from the Utilities group on the Actions tab and drag it to the OnLoad event box.

Bob
arueder 31 Jul, 2011
I added it to the onload event box, but still shows up as 24 hour format. What am I missing?

I did view the help link where I found the settings to change to 12 hour format, which i did, but the datetime box in my form still reads as 24hr.
GreyHead 01 Aug, 2011
Hi areuder,

As far as I can see you can't get the time picker itself to work in anything other than 24 hour clock time. You can get the result to display using am/pm with a format string of - for example 'g:i a'

Bob
arueder 01 Aug, 2011
I have the custom datetime picker set with the date format posted and date format shown settings of: m-d-Y g:i a

After I select a date and time this is what I get as a final result displayed in the box:

03-08-2011 17:55:13

When in fact it should read:
08-03-2011 5:55 pm

Edit: got it. I had the order of my "onload" events wrong. 😀 Thanks for all your efforts. it appears I still have a lot to learn. 🤣
This topic is locked and no more replies can be posted.