change date format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

change date format

Deepa Mandal
Hi,

I have a requirement to *change* the default *date* *format* of ofbiz to
dd-mm-yyyy in entire application.

So, could any one explain me the way to do this task.


--
Thanks & Regards
Deepa
Reply | Threaded
Open this post in threaded view
|

Re: change date format

Ashish Vijaywargiya
Please Refer UtilDateTime.java file, it has couple of helper method that you
can use in your custom code.
Thanks!

--
Ashish

On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <[hidden email]>wrote:

> Hi,
>
> I have a requirement to *change* the default *date* *format* of ofbiz to
> dd-mm-yyyy in entire application.
>
> So, could any one explain me the way to do this task.
>
>
> --
> Thanks & Regards
> Deepa
>
Reply | Threaded
Open this post in threaded view
|

Re: change date format

Deepa Mandal
Hello Ashish,

I checked the file and in that file there is no such method that would
change default timestamp format to desired one. If you know any other place
where i can do change on a single place and reflect entire application then
let me know.

Thanks & Regards
Deepa

On Thu, Dec 17, 2009 at 6:47 PM, Ashish Vijaywargiya <
[hidden email]> wrote:

> Please Refer UtilDateTime.java file, it has couple of helper method that
> you
> can use in your custom code.
> Thanks!
>
> --
> Ashish
>
> On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <[hidden email]
> >wrote:
>
> > Hi,
> >
> > I have a requirement to *change* the default *date* *format* of ofbiz to
> > dd-mm-yyyy in entire application.
> >
> > So, could any one explain me the way to do this task.
> >
> >
> > --
> > Thanks & Regards
> > Deepa
> >
>



--
Thanks & Regards
Deepa
Reply | Threaded
Open this post in threaded view
|

Re: change date format

Adrian Cumiskey-2
Hi Deepa,

I don't see that there is an easy way to do this right now.  Date/time
formats seem to be somewhat hardwired in and North American currently.
Hopefully this will get cleaned up and centralized in a configuration file
at some point when someone has a big enough itch to scratch.  I'll try to
take a look at this if I find time in the coming days.

Best wishes,

Adrian Cumiskey.

2009/12/18 Deepa Mandal <[hidden email]>

> Hello Ashish,
>
> I checked the file and in that file there is no such method that would
> change default timestamp format to desired one. If you know any other place
> where i can do change on a single place and reflect entire application then
> let me know.
>
> Thanks & Regards
> Deepa
>
> On Thu, Dec 17, 2009 at 6:47 PM, Ashish Vijaywargiya <
> [hidden email]> wrote:
>
> > Please Refer UtilDateTime.java file, it has couple of helper method that
> > you
> > can use in your custom code.
> > Thanks!
> >
> > --
> > Ashish
> >
> > On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <[hidden email]
> > >wrote:
> >
> > > Hi,
> > >
> > > I have a requirement to *change* the default *date* *format* of ofbiz
> to
> > > dd-mm-yyyy in entire application.
> > >
> > > So, could any one explain me the way to do this task.
> > >
> > >
> > > --
> > > Thanks & Regards
> > > Deepa
> > >
> >
>
>
>
> --
> Thanks & Regards
> Deepa
>
Reply | Threaded
Open this post in threaded view
|

Re: change date format

David E. Jones-2

A couple of quick points:

1. there should never be a central place to configure the date format, it should be dependent on the user's locale

2. the default date format is not North American (yes, you'll see North Americans complaining about it to), it is a descending date format that is suitable for sorting, and IMO makes more sense than any local date format...

-David



On Dec 18, 2009, at 9:40 PM, Adrian Cumiskey wrote:

> Hi Deepa,
>
> I don't see that there is an easy way to do this right now.  Date/time
> formats seem to be somewhat hardwired in and North American currently.
> Hopefully this will get cleaned up and centralized in a configuration file
> at some point when someone has a big enough itch to scratch.  I'll try to
> take a look at this if I find time in the coming days.
>
> Best wishes,
>
> Adrian Cumiskey.
>
> 2009/12/18 Deepa Mandal <[hidden email]>
>
>> Hello Ashish,
>>
>> I checked the file and in that file there is no such method that would
>> change default timestamp format to desired one. If you know any other place
>> where i can do change on a single place and reflect entire application then
>> let me know.
>>
>> Thanks & Regards
>> Deepa
>>
>> On Thu, Dec 17, 2009 at 6:47 PM, Ashish Vijaywargiya <
>> [hidden email]> wrote:
>>
>>> Please Refer UtilDateTime.java file, it has couple of helper method that
>>> you
>>> can use in your custom code.
>>> Thanks!
>>>
>>> --
>>> Ashish
>>>
>>> On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <[hidden email]
>>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a requirement to *change* the default *date* *format* of ofbiz
>> to
>>>> dd-mm-yyyy in entire application.
>>>>
>>>> So, could any one explain me the way to do this task.
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>> Deepa
>>>>
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>> Deepa
>>

Reply | Threaded
Open this post in threaded view
|

Re: change date format

Jacques Le Roux
Administrator
And BTW this has already been discussed a "couple" of time
Anyway it's good to refresh memories sometimes ;o)

Jacques

From: "David E Jones" <[hidden email]>

>
> A couple of quick points:
>
> 1. there should never be a central place to configure the date format, it should be dependent on the user's locale
>
> 2. the default date format is not North American (yes, you'll see North Americans complaining about it to), it is a descending
> date format that is suitable for sorting, and IMO makes more sense than any local date format...
>
> -David
>
>
>
> On Dec 18, 2009, at 9:40 PM, Adrian Cumiskey wrote:
>
>> Hi Deepa,
>>
>> I don't see that there is an easy way to do this right now.  Date/time
>> formats seem to be somewhat hardwired in and North American currently.
>> Hopefully this will get cleaned up and centralized in a configuration file
>> at some point when someone has a big enough itch to scratch.  I'll try to
>> take a look at this if I find time in the coming days.
>>
>> Best wishes,
>>
>> Adrian Cumiskey.
>>
>> 2009/12/18 Deepa Mandal <[hidden email]>
>>
>>> Hello Ashish,
>>>
>>> I checked the file and in that file there is no such method that would
>>> change default timestamp format to desired one. If you know any other place
>>> where i can do change on a single place and reflect entire application then
>>> let me know.
>>>
>>> Thanks & Regards
>>> Deepa
>>>
>>> On Thu, Dec 17, 2009 at 6:47 PM, Ashish Vijaywargiya <
>>> [hidden email]> wrote:
>>>
>>>> Please Refer UtilDateTime.java file, it has couple of helper method that
>>>> you
>>>> can use in your custom code.
>>>> Thanks!
>>>>
>>>> --
>>>> Ashish
>>>>
>>>> On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <[hidden email]
>>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a requirement to *change* the default *date* *format* of ofbiz
>>> to
>>>>> dd-mm-yyyy in entire application.
>>>>>
>>>>> So, could any one explain me the way to do this task.
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>> Deepa
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>> Deepa
>>>
>


Reply | Threaded
Open this post in threaded view
|

Re: change date format

Adrian Cumiskey-2
Thanks Jacques and David,

I'll try to remember to try and read the archives first, and look at the
code a little more carefully before chirping in with my 2 cents next time
:).

Adrian Cumiskey.

2009/12/19 Jacques Le Roux <[hidden email]>

> And BTW this has already been discussed a "couple" of time
> Anyway it's good to refresh memories sometimes ;o)
>
> Jacques
>
> From: "David E Jones" <[hidden email]>
>
>
>> A couple of quick points:
>>
>> 1. there should never be a central place to configure the date format, it
>> should be dependent on the user's locale
>>
>> 2. the default date format is not North American (yes, you'll see North
>> Americans complaining about it to), it is a descending date format that is
>> suitable for sorting, and IMO makes more sense than any local date format...
>>
>> -David
>>
>>
>>
>> On Dec 18, 2009, at 9:40 PM, Adrian Cumiskey wrote:
>>
>>  Hi Deepa,
>>>
>>> I don't see that there is an easy way to do this right now.  Date/time
>>> formats seem to be somewhat hardwired in and North American currently.
>>> Hopefully this will get cleaned up and centralized in a configuration
>>> file
>>> at some point when someone has a big enough itch to scratch.  I'll try to
>>> take a look at this if I find time in the coming days.
>>>
>>> Best wishes,
>>>
>>> Adrian Cumiskey.
>>>
>>> 2009/12/18 Deepa Mandal <[hidden email]>
>>>
>>>  Hello Ashish,
>>>>
>>>> I checked the file and in that file there is no such method that would
>>>> change default timestamp format to desired one. If you know any other
>>>> place
>>>> where i can do change on a single place and reflect entire application
>>>> then
>>>> let me know.
>>>>
>>>> Thanks & Regards
>>>> Deepa
>>>>
>>>> On Thu, Dec 17, 2009 at 6:47 PM, Ashish Vijaywargiya <
>>>> [hidden email]> wrote:
>>>>
>>>>  Please Refer UtilDateTime.java file, it has couple of helper method
>>>>> that
>>>>> you
>>>>> can use in your custom code.
>>>>> Thanks!
>>>>>
>>>>> --
>>>>> Ashish
>>>>>
>>>>> On Thu, Dec 17, 2009 at 5:06 PM, Deepa Mandal <
>>>>> [hidden email]
>>>>>
>>>>>> wrote:
>>>>>>
>>>>>
>>>>>  Hi,
>>>>>>
>>>>>> I have a requirement to *change* the default *date* *format* of ofbiz
>>>>>>
>>>>> to
>>>>
>>>>> dd-mm-yyyy in entire application.
>>>>>>
>>>>>> So, could any one explain me the way to do this task.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>> Deepa
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>> Deepa
>>>>
>>>>
>>
>
>