name of the day in local

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

name of the day in local

Pierre Smits
Hi all,

Is there a function available in OFBiz to get the name of the day of a given
date?

Regards,

Pierre
Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Jacques Le Roux
Administrator
Not directly, but using methods in UtilDateTime.java it should be doable I guess. Then could be contributed....

Jacques

From: "Pierre Smits" <[hidden email]>
> Hi all,
>
> Is there a function available in OFBiz to get the name of the day of a given
> date?
>
> Regards,
>
> Pierre
>

Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Scott Gray-2
I'm 99% sure there is a service for this that is used for printing invoices and the like, something like getPartyNameDated or similar.

Regards
Scott

On 2/09/2010, at 1:24 AM, "Jacques Le Roux" <[hidden email]> wrote:

> Not directly, but using methods in UtilDateTime.java it should be doable I guess. Then could be contributed....
>
> Jacques
>
> From: "Pierre Smits" <[hidden email]>
>> Hi all,
>> Is there a function available in OFBiz to get the name of the day of a given
>> date?
>> Regards,
>> Pierre
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Robert Gan
did someone got this? Im interested in it as well. I wanna show on the ecommerce site (FTL page) the name of the day like MOnday etc.

Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Adrian Crum-3
Look in org.ofbiz.service.calendar.ExpressionUiHelper.

-Adrian

On 6/18/2012 6:31 PM, Robert G. wrote:
> did someone got this? Im interested in it as well. I wanna show on the
> ecommerce site (FTL page) the name of the day like MOnday etc.
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/name-of-the-day-in-local-tp2403041p4633712.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Mohd Viqar
In reply to this post by Pierre Smits
I did it like this.
<#assign currentDate = .now>
<div>${currentDate?string("EEEE")}<div> <#-- This will output Tuesday -->
<div>${currentDate?string("EEE")}<div> <#-- This will output Tue -->

Yoc can look here for further reference http://freemarker.sourceforge.net/docs/ref_builtins_date.html

Regards
Mohd Viqar
Reply | Threaded
Open this post in threaded view
|

Re: name of the day in local

Robert Gan
many many thanks!

greetings,

Robert