You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Pierre Smits <pi...@apache.org> on 2019/04/20 11:22:38 UTC

Day name and Month Name

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

Re: Day name and Month Name

Posted by Pierre Smits <pi...@apache.org>.
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 <de...@hotwax.co> 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 <pi...@apache.org>
> 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
> >
>

Re: Day name and Month Name

Posted by Deepak Dixit <de...@hotwax.co>.
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 <pi...@apache.org> 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
>