Jump to content
We've recently updated our Privacy Statement, available here ×
  • Repository View - Created/Modified Date Format


    asimkin
    • Features: Localization, Repository, User Interface Version: v6.4 Product: JasperReports® Server

    Issue Description

    In TIBCO JasperReports® Server Repository view, Created / Modified Date fields are represented in different formats.

    Why is this so and how can I change this?


    Resolution

    Date Format in the Repository view based on date value:

    • if this is a present date - Today value displayed
    • if this is a yesterday date - Yesterday value displayed
    • if this is a current year date - 'MMMMM d ' Java date format is used to display the date, something like 'February 26'
    • otherwise, "M/d/yyyy" Java date format is used

    This is why you see dates in different formats.

    There is a way to configure current year and  general date format in

    WEB-INF/bundles/jasperserver_config.properties

    config file.

    The properties in question are:

    #Date and time formats which are used in repository and in View -> Messages

    repository.date.format=M/d/yyyy

    repository.current.year.date.format=MMMMM d

    Solution tested with TIBCO JasperReports® Server v.6.4.0


    Ref. Case 01530669


    User Feedback

    Recommended Comments

    Hello, If I didn't want it to show "Yesterday" or "Today"  and instead show 01/15/2019 or whatever date it is, how would I change that?

    I already tried changing the jasperserver_config.properties file with the following: 

    repository.date.format=MM/dd/yyyy
    repository.current.year.date.format=MM/dd/yyyy

    Any response would be appreciated :)

     

     

     

     

    Link to comment
    Share on other sites

    Hi,

    unfortunately, for Today and Yesterday dates, a plain text values are used in 

    jasperserver_messages*.properties

    bundle files

    SEARCH_DATE_TODAY=Today
    SEARCH_DATE_YESTERDAY=Yesterday
     

    There is an enhancement request to make that values configurable as well.

    Hope, this helps.

    Best regards,
    Andrew

    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...