Jump to content
Changes to the Jaspersoft community edition download ×

Format date and get the current date in a parameter that is by default


erikmarbad

Recommended Posts

I am trying to format a date type parameter so that the current date is by default, such as: 2022-03-24

<parameter name="FLIB" class="java.sql.Date">
        <defaultValueExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").format(new Date())]]></defaultValueExpression>
    </parameter>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...