How to change start day of WEEK for Relative Dates with no access to properties file

1

Hello Friends,

How do i change the startDayOfWeek or endDayOfWeek in an expression, since i believe the only way to change this is by a function, or parameter? however, i am not sure...? 

When i don't have access nor can have access to change the server setting. We cannot change the server setting since it's multi-client(s) server.

 in WEB-INF/classes/relativedate.properties

I use this and its perfect,

However, based on my local/timezone information, my start date is starting on Monday (1)  and i need Sunday (0). 

I don't know how to set this. Is it set in the start and end date parameters?

<parameter name="weekStartDate" class="net.sf.jasperreports.types.date.DateRange" isForPrompting="false">
<parameterDescription><![CDATA[Week Start Date]]></parameterDescription>
<defaultValueExpression><![CDATA[new net.sf.jasperreports.types.date.DateRangeBuilder("WEEK-1").toDateRange()]]></defaultValueExpression>
</parameter>
<parameter name="startDate" class="java.util.Date">
<parameterDescription><![CDATA[Start Date]]></parameterDescription>
<defaultValueExpression><![CDATA[$P{weekStartDate}.getStart()]]></defaultValueExpression>
</parameter>

Thanks,

FurRelKT's picture
Joined: Nov 13 2014 - 9:24am
Last seen: 1 week 3 days ago

0 Answers:

No answers yet
Feedback