Hello,
All over Ofbiz I want to change the Date format to be displayed as dd-mm-yyyy. I Changed the format in UtilDateTime.java file but still values are displayed as mm-dd-yyyy only. Any inputs over this would be of great help. Thanks, Mandar |
HI Mandar
If you are using XML for FTL to display the date on UI ,that its easy to display. on FTL you can use ${requestList.Date?if_exists?string("dd/MM/yyyy") through given above format you can show it in the form of dd/mm/yyyy On Thu, Jan 15, 2015 at 10:37 PM, Mandar K <[hidden email]> wrote: > Hello, > > All over Ofbiz I want to change the Date format to be displayed as > dd-mm-yyyy. > > I Changed the format in UtilDateTime.java file but still values are > displayed as mm-dd-yyyy only. > > Any inputs over this would be of great help. > > Thanks, > Mandar > -- *Thanks & RegardsSAURABH SINGH**Software Engineer* |
Hi,
I am not using FTL. I want to use entire Ofbiz and I cannot go and change the date setting in each and every form and FTL. I was asking about any setting to be done in any properties file or similar to the UTilDateTime Format Change, etc which would change the way date appears in the application. Thanks Mandar On Fri, Jan 16, 2015 at 11:05 AM, SAURABH SINGH < [hidden email]> wrote: > HI Mandar > > If you are using XML for FTL to display the date on UI ,that its easy to > display. > on FTL you can use > > ${requestList.Date?if_exists?string("dd/MM/yyyy") > > through given above format you can show it in the form of dd/mm/yyyy > > On Thu, Jan 15, 2015 at 10:37 PM, Mandar K <[hidden email]> wrote: > > > Hello, > > > > All over Ofbiz I want to change the Date format to be displayed as > > dd-mm-yyyy. > > > > I Changed the format in UtilDateTime.java file but still values are > > displayed as mm-dd-yyyy only. > > > > Any inputs over this would be of great help. > > > > Thanks, > > Mandar > > > > > > -- > > > > > *Thanks & RegardsSAURABH SINGH**Software Engineer* > |
This should be a configurable aspect of OFBiz, and not be hard coded.
Before you know it, one of your users (or many) will come along and would like to have OFBiz used in a different country/region where they would to have the dates displayed in a different format. With hard coded definitions of how dates are displayed you limit the user experience and thereby the applicability and adoption of OFBiz. Best regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com On Fri, Jan 16, 2015 at 7:31 AM, Mandar K <[hidden email]> wrote: > Hi, > > I am not using FTL. I want to use entire Ofbiz and I cannot go and change > the date setting in each and every form and FTL. > > I was asking about any setting to be done in any properties file or similar > to the UTilDateTime Format Change, etc which would change the way date > appears in the application. > > Thanks > Mandar > > > On Fri, Jan 16, 2015 at 11:05 AM, SAURABH SINGH < > [hidden email]> wrote: > > > HI Mandar > > > > If you are using XML for FTL to display the date on UI ,that its easy to > > display. > > on FTL you can use > > > > ${requestList.Date?if_exists?string("dd/MM/yyyy") > > > > through given above format you can show it in the form of dd/mm/yyyy > > > > On Thu, Jan 15, 2015 at 10:37 PM, Mandar K <[hidden email]> wrote: > > > > > Hello, > > > > > > All over Ofbiz I want to change the Date format to be displayed as > > > dd-mm-yyyy. > > > > > > I Changed the format in UtilDateTime.java file but still values are > > > displayed as mm-dd-yyyy only. > > > > > > Any inputs over this would be of great help. > > > > > > Thanks, > > > Mandar > > > > > > > > > > > -- > > > > > > > > > > *Thanks & RegardsSAURABH SINGH**Software Engineer* > > > |
In reply to this post by mankul
how about changing the java locale?
On 16/01/15 10:37, Mandar K wrote: > Hello, > > All over Ofbiz I want to change the Date format to be displayed as > dd-mm-yyyy. > > I Changed the format in UtilDateTime.java file but still values are > displayed as mm-dd-yyyy only. > > Any inputs over this would be of great help. > > Thanks, > Mandar > |
Hello Hans,
To what should I Change the java locale and in which file? Thanks, Mandar On Fri, Jan 16, 2015 at 1:37 PM, Hans Bakker <[hidden email]> wrote: > how about changing the java locale? > > > On 16/01/15 10:37, Mandar K wrote: > >> Hello, >> >> All over Ofbiz I want to change the Date format to be displayed as >> dd-mm-yyyy. >> >> I Changed the format in UtilDateTime.java file but still values are >> displayed as mm-dd-yyyy only. >> >> Any inputs over this would be of great help. >> >> Thanks, >> Mandar >> >> > |
Hi Mandar,
date format is part of the java locale and be set in OFBiz, changing the language. more info when you enter: java locale date format in your preferred search engine Regards, Hans AntWebsystems.com , provider for any size, yes also larger companies On 16/01/15 15:25, Mandar K wrote: > Hello Hans, > > To what should I Change the java locale and in which file? > > Thanks, > Mandar > > > On Fri, Jan 16, 2015 at 1:37 PM, Hans Bakker <[hidden email]> > wrote: > >> how about changing the java locale? >> >> >> On 16/01/15 10:37, Mandar K wrote: >> >>> Hello, >>> >>> All over Ofbiz I want to change the Date format to be displayed as >>> dd-mm-yyyy. >>> >>> I Changed the format in UtilDateTime.java file but still values are >>> displayed as mm-dd-yyyy only. >>> >>> Any inputs over this would be of great help. >>> >>> Thanks, >>> Mandar >>> >>> |
Hello Hans,
Thanks for your input. As per that, I changed the locale to en_UK in start.properties, and rebuild the project also, but this didnt change date format. After that I tried changing the locale to de and fr also, but neither of them worked. Kindly guide on what is missing. Thanks, Mandar On Fri, Jan 16, 2015 at 3:12 PM, Hans Bakker <[hidden email]> wrote: > Hi Mandar, > > date format is part of the java locale and be set in OFBiz, changing the > language. > > more info when you enter: java locale date format > > in your preferred search engine > > Regards, > Hans > > AntWebsystems.com , provider for any size, yes also larger companies > > > On 16/01/15 15:25, Mandar K wrote: > >> Hello Hans, >> >> To what should I Change the java locale and in which file? >> >> Thanks, >> Mandar >> >> >> On Fri, Jan 16, 2015 at 1:37 PM, Hans Bakker < >> [hidden email]> >> wrote: >> >> how about changing the java locale? >>> >>> >>> On 16/01/15 10:37, Mandar K wrote: >>> >>> Hello, >>>> >>>> All over Ofbiz I want to change the Date format to be displayed as >>>> dd-mm-yyyy. >>>> >>>> I Changed the format in UtilDateTime.java file but still values are >>>> displayed as mm-dd-yyyy only. >>>> >>>> Any inputs over this would be of great help. >>>> >>>> Thanks, >>>> Mandar >>>> >>>> >>>> > |
Hi Mandar
Have a look at the renderDateTimeField in /framework/widget/templates/htmlFormMacroLibrary.ftl. Modifying this macro should give you the ability to set the display format for date-times, at least for those defined in xml form widgets. It will not deal with date/time displays in ftl files. You might have to modify each ftl file or handle all ftls through a javascript manipulation. Gavin On Sat, Jan 17, 2015 at 11:32 AM, Mandar K <[hidden email]> wrote: > Hello Hans, > > Thanks for your input. > As per that, I changed the locale to en_UK in start.properties, and rebuild > the project also, but this didnt change date format. > After that I tried changing the locale to de and fr also, but neither of > them worked. > > Kindly guide on what is missing. > > Thanks, > Mandar > > On Fri, Jan 16, 2015 at 3:12 PM, Hans Bakker < > [hidden email]> > wrote: > > > Hi Mandar, > > > > date format is part of the java locale and be set in OFBiz, changing the > > language. > > > > more info when you enter: java locale date format > > > > in your preferred search engine > > > > Regards, > > Hans > > > > AntWebsystems.com , provider for any size, yes also larger companies > > > > > > On 16/01/15 15:25, Mandar K wrote: > > > >> Hello Hans, > >> > >> To what should I Change the java locale and in which file? > >> > >> Thanks, > >> Mandar > >> > >> > >> On Fri, Jan 16, 2015 at 1:37 PM, Hans Bakker < > >> [hidden email]> > >> wrote: > >> > >> how about changing the java locale? > >>> > >>> > >>> On 16/01/15 10:37, Mandar K wrote: > >>> > >>> Hello, > >>>> > >>>> All over Ofbiz I want to change the Date format to be displayed as > >>>> dd-mm-yyyy. > >>>> > >>>> I Changed the format in UtilDateTime.java file but still values are > >>>> displayed as mm-dd-yyyy only. > >>>> > >>>> Any inputs over this would be of great help. > >>>> > >>>> Thanks, > >>>> Mandar > >>>> > >>>> > >>>> > > > |
Thanks Gavin, Hans. Let me check.
On Sat, Jan 17, 2015 at 5:09 PM, Gavin Mabie <[hidden email]> wrote: > Hi Mandar > > Have a look at the renderDateTimeField > in /framework/widget/templates/htmlFormMacroLibrary.ftl. Modifying this > macro should give you the ability to set the display format for date-times, > at least for those defined in xml form widgets. It will not deal with > date/time displays in ftl files. You might have to modify each ftl file or > handle all ftls through a javascript manipulation. > > Gavin > > On Sat, Jan 17, 2015 at 11:32 AM, Mandar K <[hidden email]> wrote: > > > Hello Hans, > > > > Thanks for your input. > > As per that, I changed the locale to en_UK in start.properties, and > rebuild > > the project also, but this didnt change date format. > > After that I tried changing the locale to de and fr also, but neither of > > them worked. > > > > Kindly guide on what is missing. > > > > Thanks, > > Mandar > > > > On Fri, Jan 16, 2015 at 3:12 PM, Hans Bakker < > > [hidden email]> > > wrote: > > > > > Hi Mandar, > > > > > > date format is part of the java locale and be set in OFBiz, changing > the > > > language. > > > > > > more info when you enter: java locale date format > > > > > > in your preferred search engine > > > > > > Regards, > > > Hans > > > > > > AntWebsystems.com , provider for any size, yes also larger companies > > > > > > > > > On 16/01/15 15:25, Mandar K wrote: > > > > > >> Hello Hans, > > >> > > >> To what should I Change the java locale and in which file? > > >> > > >> Thanks, > > >> Mandar > > >> > > >> > > >> On Fri, Jan 16, 2015 at 1:37 PM, Hans Bakker < > > >> [hidden email]> > > >> wrote: > > >> > > >> how about changing the java locale? > > >>> > > >>> > > >>> On 16/01/15 10:37, Mandar K wrote: > > >>> > > >>> Hello, > > >>>> > > >>>> All over Ofbiz I want to change the Date format to be displayed as > > >>>> dd-mm-yyyy. > > >>>> > > >>>> I Changed the format in UtilDateTime.java file but still values are > > >>>> displayed as mm-dd-yyyy only. > > >>>> > > >>>> Any inputs over this would be of great help. > > >>>> > > >>>> Thanks, > > >>>> Mandar > > >>>> > > >>>> > > >>>> > > > > > > |
Free forum by Nabble | Edit this page |