QueenArtemis Posted November 15, 2016 Share Posted November 15, 2016 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.propertiesI 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, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now