Hi,
Date format currently display like YYYY-MM-DD in profiles. I would like to change to DD/MM/YYYY which is used in Europe. Date format in admin don't change date profile's format.
Anyone know a solution ?
Hi, Date format currently display like YYYY-MM-DD in profiles. I would like to change to DD/MM/YYYY which is used in Europe. Date format in admin don't change date profile's format. Anyone know a solution ? | ||||||||||
You change the date format in admin panel as per your needs. ---- | ||||||||||
make it m/d/Y ---- | ||||||||||
Off course I already changed date format in panel admin as I said, but it has no effect on profile birthday field (it works for all dates in other places, like blogs)! Any idea ? | ||||||||||
This date is going me crazy. Don't know how to solve this basic problem. Date show in profile like YYYY-MM-DD. I want to reverse it like DD-MM-YYYY. Admin settings have no effect for this date ! Thanks for your help ! | ||||||||||
Did you ever figure this out? | ||||||||||
BUMP. The admin panel date format has no effect on the site. Someone please enlighten us! | ||||||||||
Hi guys, No I didn't find a solution for this problem... Still searching for a solution! Best regard | ||||||||||
I wrote about this issue in unoboonex's blog post, don't know if it will be addressed or not. In the meantime, BUMP! | ||||||||||
Hi guys, as you notice - since 6.1.2 all datatime (quite all places at index page/ profile/ member pages, classifieds/blogs/events ... many places) was localized, so now possible have data at different languages, It was realized using new lang keys (_day_of_1 - _day_of_12) - that mean localized month, to just change format using lang file | ||||||||||
AndreyP, I don't quite understand what I need to do to get date to show dd/mm/yy.
Right now, my _day_of_1 is set to {0} January, {1} _day_of_2 is set to {0} February, {1}
and so forth...
So what does it need to be??? Please give an example? | ||||||||||
Look here: _day_of_1 is set to {0} January, {1} so as result it become to 12 January, 2008 as example, so to change format you can just change value .. next example: {1}-Jan-{0} result will 2008-Jan-12 Understand now? you can create your own format here at any languages :) | ||||||||||
Look here: _day_of_1 is set to {0} January, {1}
so as result it become to
12 January, 2008
as example, so to change format you can just change value ..
next example:
{1}-Jan-{0}
result will 2008-Jan-12
Understand now? you can create your own format here at any languages :)
OK I see. So to get format Jan-12-2008, I need:
_day_of_1 = January {0}, {1}
I will give it a shot. Thanks bro! | ||||||||||
This is not working into profiles... on blogs and news yes. Kids first | ||||||||||
OK I see. So to get format Jan-12-2008, I need:
_day_of_1 = January {0}, {1}
I will give it a shot. Thanks bro! This worked for me. I still don't necessarily understand why doing it this way is better or more desirable than setting the date format through the admin panel, but whatever...IT WORKS! Thanks again AndreyP! | ||||||||||
This was realized just because many peoples asks about custom formats and possibility to translate this (before all dates was in english) | ||||||||||
Finaly an answer for my problem.....
xxxxxxxxxxx Right now, my _day_of_1 is set to {0} January, {1} _day_of_2 is set to {0} February, {1}
and so forth... xxxxxxxxxxx
I didn`t have these keys in, and the date on blogs, news, and events were showing day_of_6....or so....gave it a try and now it shows the date....Jeez...
Thank you guys...
| ||||||||||
I have the same issue in "My Profile" in "Misc Info". I'd like to have the birthday and registration date changed to format like "last login date". The _day_of_10 is set to {0}. Oktober {1} and the same style for the other month. Any further solutions? Thanks Tom
| ||||||||||
Still no fix for this wrong date of birth format in profile (yyyy-mm-dd) Where is such format used ??? in the moon ??? he he he Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine. | ||||||||||
This was realized just because many peoples asks about custom formats and possibility to translate this (before all dates was in english) Regarless of what language it is in, how do you FORMAT the date to display the way you want it in the other places??? i.e. 7/28/2008 2008/7/28 28/7/2008 2008/28/7 | ||||||||||
inc/classes/BxDolProfileFields.php solution works, but it mess "last login" and "last edit" dates. So small correction can fix that too. find: function getViewableDate( $sDate ) { and replace it with: function getViewableDate( $sDate ) { function getViewableDate2( $sDate ) { Now we have two functions: one that we modified and will use for our date and original one getViewableDate2 which will use to avoid wrong "last" dates. Now we need to go and use that getViewableDate2 at "last" dates. Find this function getViewableValue( $aItem, $sValue ) and there is: case 'DateLastEdit': just replace getViewableDate with getViewableDate2 like: case 'DateLastEdit': and done. Now you have correct dates for DOB and last login/edit. Cheers, George | ||||||||||
thanks this did fix the login date problem. could you tell me how to get rid of the time stamp it adds after the date?
inc/classes/BxDolProfileFields.php solution works, but it mess "last login" and "last edit" dates. So small correction can fix that too. find: function getViewableDate( $sDate ) { and replace it with: function getViewableDate( $sDate ) { function getViewableDate2( $sDate ) { Now we have two functions: one that we modified and will use for our date and original one getViewableDate2 which will use to avoid wrong "last" dates. Now we need to go and use that getViewableDate2 at "last" dates. Find this function getViewableValue( $aItem, $sValue ) and there is: case 'DateLastEdit': just replace getViewableDate with getViewableDate2 like: case 'DateLastEdit': and done. Now you have correct dates for DOB and last login/edit. Cheers, George
| ||||||||||
hi exoexo: thank you for your fix to the date format issue. i was having the same issue. it works great! thanks again. | ||||||||||
i have a date function in a file that includes to this file shamsi.php. for use this function i should use jgmdate() insted of date() . how can i use this for login date and time? |