Jump to content
We've recently updated our Privacy Statement, available here ×

date/time in jasper calander control


naresh.kabra_1

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

At parameter's properties, must be java.sql.Timestamp Class and Default value expression:

new Timestamp( Calendar.getInstance().get(Calendar.YEAR) - 1900,
               Calendar.getInstance().get(Calendar.MONTH),
               Calendar.getInstance().get(Calendar.DAY_OF_MONTH), 0, 0, 0, 0
)

and

new Timestamp( Calendar.getInstance().get(Calendar.YEAR) - 1900,
               Calendar.getInstance().get(Calendar.MONTH),
               Calendar.getInstance().get(Calendar.DAY_OF_MONTH), 23, 59, 59, 0
)

Mariano

Link to comment
Share on other sites

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...