Monday, April 19, 2021

Jasper Soft Character to Date conversion in Expression Editor


click [..] to go to Expression Editor.

new SimpleDateFormat("yyyyMMdd").parse($P{P_ATTDT})

$P{P_ATTDT}    ------------ > This is the Parameter or field.

Note : Month should be in MM format not in mm Format. 

e.g.  new SimpleDateFormat("yyyyMMdd").parse($P{P_ATTDT})

enjoy !!!


0 comments:

Post a Comment