Predefined variables: Add "week in year" or even better, rely on SimpleDateFormat

Issue #115 closed
Borja Rodríguez Diliz created an issue

We do weekly planning, so we miss the following predefined variable for summary and description:

${dueDate.weekInYear}

Even better: Why not to rely on SimpleDateFormat so we can create the date format to fit our needs? https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

${dueDate("w")}

Another nice examples:

${dueDate("yyyy.MM.dd G 'at' HH:mm:ss z")} // 2001.07.04 AD at 12:08:56 PDT
${dueDate("h:mm a")} // 12:08 PM
${dueDate("hh 'o''clock' a, zzzz")} // 12 o'clock PM, Pacific Daylight Time
${dueDate("yyyy-MM-dd'T'HH:mm:ss.SSSXXX")} // 2001-07-04T12:08:56.235-07:00

Comments (4)

  1. Bartosz Gilewski

    Hi Borja,

    We have just released new version of The Scheduler plugin - 4.0.7. In this version you can find new date formatting feature - you can define your own format using one of those variables:

    ${createdDate.format("dd-MM-YYYY HH:mm")} - Creation date, e.g. 10-02-2015 14:05

    ${dueDate.format("dd-MM-YYYY HH:mm")} - Due date, e.g. 10-02-2015 14:05

    You can replace dd-MM-YYYY HH:mm with your own format. More details can be found here: https://bitbucket.org/apdc/the-scheduler/wiki/Predefined%20values%20in%20Summary%20and%20Description

  2. Log in to comment