clynn Posted February 6, 2019 Share Posted February 6, 2019 We use Jaspersoft as the report writer for our Sumtotal LMS. Here's how I was able to create a calculated field to have the leading zeros in the result (it is not available in the web client (my only option) to covert to that format and have the leading zeros) What I did to get the leading zeros in my calculated attempt end date field: Concatenate(IF(MonthNumber("AttemptEndDt") < 10, '0', ''), MonthNumber("AttemptEndDt"), '/', IF(DayNumber("AttemptEndDt") < 10, '0', ''), DayNumber("AttemptEndDt"), '/', Year("AttemptEndDt")) Link to comment Share on other sites More sharing options...
hozawa Posted February 6, 2019 Share Posted February 6, 2019 If "AttemptEndDt" is of type Date, following should also do.DATEFORMAT($V{AttemptEndDt},"yyyy/MM/dd") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now