Day name and Month Name

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

Day name and Month Name

Pierre Smits-3
HI all,

Are there functions in ofbiz to get:

   1. the name of the Day given a particular date? And equally to get the
   abreviation?, E.g 'Sunday' > 'Sun';
   2. the name of the Month given a particular month number (derived from
   either a date/timestamp or month number)? And equally so to get the
   abbreviation? E.g. 'January' > 'Jan'?


Best regards,

Pierre Smits

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer
Reply | Threaded
Open this post in threaded view
|

Re: Day name and Month Name

Deepak Dixit-4
Hi Pierre,

You can use SimpleDateFormat or DateFormatSymbols class to achieve your
requirements

Kind Regards,


On Sat, Apr 20, 2019 at 4:52 PM Pierre Smits <[hidden email]> wrote:

> HI all,
>
> Are there functions in ofbiz to get:
>
>    1. the name of the Day given a particular date? And equally to get the
>    abreviation?, E.g 'Sunday' > 'Sun';
>    2. the name of the Month given a particular month number (derived from
>    either a date/timestamp or month number)? And equally so to get the
>    abbreviation? E.g. 'January' > 'Jan'?
>
>
> Best regards,
>
> Pierre Smits
>
> *Apache Trafodion <https://trafodion.apache.org>, Vice President*
> *Apache Directory <https://directory.apache.org>, PMC Member*
> Apache Incubator <https://incubator.apache.org>, committer
> *Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
> since 2008*
> Apache Steve <https://steve.apache.org>, committer
>
Reply | Threaded
Open this post in threaded view
|

Re: Day name and Month Name

Pierre Smits-3
Hi Deepak,

Thanks, I found the solution while working on
https://issues.apache.org/jira/browse/OFBIZ-10947

Best regards,

Pierre Smits

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer


On Wed, Apr 24, 2019 at 8:10 AM Deepak Dixit <[hidden email]> wrote:

> Hi Pierre,
>
> You can use SimpleDateFormat or DateFormatSymbols class to achieve your
> requirements
>
> Kind Regards,
>
>
> On Sat, Apr 20, 2019 at 4:52 PM Pierre Smits <[hidden email]>
> wrote:
>
> > HI all,
> >
> > Are there functions in ofbiz to get:
> >
> >    1. the name of the Day given a particular date? And equally to get the
> >    abreviation?, E.g 'Sunday' > 'Sun';
> >    2. the name of the Month given a particular month number (derived from
> >    either a date/timestamp or month number)? And equally so to get the
> >    abbreviation? E.g. 'January' > 'Jan'?
> >
> >
> > Best regards,
> >
> > Pierre Smits
> >
> > *Apache Trafodion <https://trafodion.apache.org>, Vice President*
> > *Apache Directory <https://directory.apache.org>, PMC Member*
> > Apache Incubator <https://incubator.apache.org>, committer
> > *Apache OFBiz <https://ofbiz.apache.org>, contributor (without
> privileges)
> > since 2008*
> > Apache Steve <https://steve.apache.org>, committer
> >
>