I'm still learning my away around 7.11 so some of my questions are probably noobish to most of you, I'm sure so apologies.
I've set all the date formats to US friendly month - day - year in the admin panel but it seems the datepicker ui is not associated with those admin fields.
I actually tried changing the format in the datepicker ui to m%d etc but alas, it's not storing the date in the right format so it looks like events or whatever happened 30+yrs ago haha.
I poked around on the forum but didn't see an answer really. Is it just not easily done given the way it's implemented now or is it so simple I'm the only one that can't figure it out?
My preference is to have it m d y with 12hr times but ok if only 24hr will work. Appreciate any advice. Thx!
|
No one? I saw someone else posted a very similiar question and no one answered that post either. Basically, how do you make the popup datepicker use Month - Day - Year and 12hr vs 24hr timestamp? It's not common to lead with the Year in the U.S. and it makes the application look 'foreign'. I suppose technically it is. Ha. Anyway, help if you can.
I'm still learning my away around 7.11 so some of my questions are probably noobish to most of you, I'm sure so apologies.
I've set all the date formats to US friendly month - day - year in the admin panel but it seems the datepicker ui is not associated with those admin fields.
I actually tried changing the format in the datepicker ui to m%d etc but alas, it's not storing the date in the right format so it looks like events or whatever happened 30+yrs ago haha.
I poked around on the forum but didn't see an answer really. Is it just not easily done given the way it's implemented now or is it so simple I'm the only one that can't figure it out?
My preference is to have it m d y with 12hr times but ok if only 24hr will work. Appreciate any advice. Thx!
|
Not easy.
The date picker is in the format it's in because that is how the date needs to be stored in the database.
To change the format of that would require additional coding to convert that format back into what it's expected to be for storage in the database.
I do not know of any way to change that without creating problems.
https://www.deanbassett.com |
After taking quite a long time to figure it out, the solution (for my needs) turned out to be rather easy to implement:
Change the datepicker format to dateFormat: 'mm-dd-yy' in inc/js/jquery.webForms.js
Change the date array in inc/classes/BxDolForm.php to $iDay = $m[2]; $iMonth = $m[1]; $iYear = $m[3]; which swaps the passed month and day values.
Change timeFormat: 'h:mmtt' for 12hr with am/pm designation on datepicker slider bar (Note: the tt value in your date field will cause the preg match to fail and display a form error that your date is not formatted correct. Either use H:mm for 24hr designation, leave off the tt or truncate the am/pm before you do a mktime)
|
The date picker SUCKS!!!! Drop down date selectors are just so simple, but boonex took that away. They refuse to improve one part without downgrading another, such as replacing simple date selectors with a date picker. They could at least give us a choice by placing date picker as a module that can be disabled /enabled , maybe ???? |
RE:
The date picker SUCKS!!!! Drop down date selectors are just so simple, but boonex took that away. They refuse to improve one part without downgrading another, such as replacing simple date selectors with a date picker. They could at least give us a choice by placing date picker as a module that can be disabled /enabled , maybe ????
The date picker is just fine. You click on a date field, click the mouse a few times, and you're done. What's so hard about that?
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
The date picker won't let me pick a different year. Everyone must be born in 2015 ;) What gives?
Also, would be ideal to have a toggle between using a calendar and using three drop select menus.
|
It looks like this is bug in the custom modification, it works fine on demo.boonex.com
Also this old thread - please create new one.
The date picker won't let me pick a different year. Everyone must be born in 2015 ;) What gives?
Also, would be ideal to have a toggle between using a calendar and using three drop select menus.
Rules → http://www.boonex.com/terms |