Fixed date in timesheet

1 post / 0 new
janegil
janegil's picture
Fixed date in timesheet

If you ever need to have a fixed date added in your timesheet, this is how the section should look like:

Mark that you need to have offset -1 to the RyearE if you want the end date in the same year.

        <period name="Fixed1">
            <label locale="no">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <label locale="en-gb">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <label locale="sv-SE">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <label locale="nl-NL">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <label locale="da-DK">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <label locale="de-DE">
                <caption><![CDATA[7-8 feb 2018]]></caption>
            </label>
            <startDate><![CDATA[=Date({"mask":"RyearS","offset":0,"output":"I","startofyear":"02-07"});]]></startDate>
            <endDate><![CDATA[=Date({"mask":"RyearE","offset":-1,"output":"I","startofyear":"02-09"});]]></endDate>
            <startTrendDate><![CDATA[=Date({"mask":"RyearS","offset":-1});]]></startTrendDate>
            <endTrendDate><![CDATA[=Date({"mask":"RyearE","offset":0});]]></endTrendDate>
        </period>