How to change the date pattern in jasper server 7.1 - jasperserver

Currently we are evaluating Jasper Server 7.1.
We have a reporting solution on SpagoBI with having around 500 different types of jrxml format and we want to move all of those to jasper server with less modification.
The date formats which we used in Spago is MM-DD-YYYY. But it looks Jasper Server is accepting only YYYY-MM-DD date formats.
Is there any way we can make it to MM-DD-YYYY instead of YYYY-MM-DD.
We tried modifying the configuration file Jaspersoft\jasperreports-server-cp-7.1.0\apache-tomcat\webapps\jasperserver\WEB-INF\bundlesjasperserver_config.properties with below but no luck.
Used for parsing and formatting dates by server:
date.format=MM/dd/yyyy
datetime.format=MM/dd/yyyy HH:mm:ss
time.format=HH:mm:ss
calendar.date.format=mm/dd/yy
calendar.datetime.format=mm/dd/yy HH:mm:ss
calendar.time.format=HH:mm:ss
repository.date.format=M/d/yyyy
repository.current.year.date.format=MMMMM d
repository.datetime.format=M/d/yyyy hh:mmaaa
repository.time.format=hh:mmaaa

Related

How to set default parameter as 7 days ago to different date format on ssrs

I have default parameter and this parameter shows me 7 days ago with the expression below:
=DateAdd("d",-7,CDate(Format(Today(), "MM/dd/yyyy")))
But my report just running without error while the customer using "MM/dd/yyyy" time format.
Is there a way to use this parameter ALSO with "dd/MM/yyyy" format?
I would like to set a parameter to show 7 days ago but ı would like to use this parameter with both time format.
Thanks
Don't use the Format. Just put =DateAdd("d",-7,Today()). It will automatically take the Format according to System's format.
Firstly, the format part of your expression is redundant and misleading - don't use it
=DateAdd("d",-7,Today())
Secondly, you don't have any choice of how SSRS displays it's datepickers. It shows american format only (M/d/Y)
A date is a value and values do not have a format. A date is displayed and has to be entered in a format that depends on the language settings of your browser. Using a date picker, you even don't have to care about the input format. So, just use an expression that calculates the desired value:
=Today.AddDays(-7)

$Date.Format on Silverstripe 4 Template

I have a date in the database with this format "YY-mm-dd". On the template I want it in this format: dd.mm.YY
Usually it would work with $date.Format('d.m.Y')
But not in Silverstripe 4. It converts from 2018-05-08 to 8.0.2018. Only the year is correct. Was there a change. I didn't find anything in the Documentation
Date formats in SS4 were changed from PHP date formatting to CLDR date formatting (changelog link):
Changed Format() method to use CLDR format strings, rather than PHP format string. E.g. d/m/Y H:i:s (php format) should be replaced with to dd/MM/y HH:mm:ss (CLDR format).
You can use this to achieve what you want:
$Date.Format('dd.MM.y')
The guide mentioned in the previous answer regarding date formatting has moved. The new location for CLDR date formatting as used by Silverstripe 4 can be found here:
https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table

Importing ISO 8601 Formatted CSV Dates into Matlab R2014b

I am trying to import a CSV file with ISO 8601 formatted dates with Matlab R2014b. I am using the CSV import wizard, and am needing to use the custom date formatter, as the ISO 8601 date format is not built into Matlab.
However, Matlab never recognises the date/time data as date/time data. Can anyone resolve this? The documentation doesn't say anything about how items that are not part of the date format (e.g. the 'T') are parsed.
Picking a string directly for conversion works ok.
>> datenum('"2008-01-01T00:00:00+13:00"', '"yyyy-MM-ddThh:mm:ssZZZZZ"')
ans =
7.3338e+05
But the same conversion does not work in the CSV import wizard, as shown in the screenshot below.
Any particular reason why it works in the command line but not in the import wizard?

Issue with date format in input control

I have a report that takes date range as input control. But when I enter the date in the input control, its format changes automatically and error message is displayed (screenshot attached).
What's going wrong here?
Its because of the date format you have given in the iReport which is mm/dd/yyyy and default date format of JasperReport server is yyyy-MM-dd.
You can change the date format of JasperReport server which is controlled by the Locale and therefore the locale bundles.
To change the date format edit jasperserver_config.properties which is under
\jasperreports-server-cp-5.5.0\apache-tomcat\webapps\jasperserver\WEB-INF\bundles
These are the date formats in jasperserver_config.properties file:-
date.format=dd-MM-yyyy
datetime.format=yyyy-MM-dd HH:mm
calendar.date.format=%d-%m-%Y
calendar.datetime.format=%Y-%m-%d %H:%M

Localizing date on SSRS

I'm using the d Format on the date field
So when the report's Language is on German(de), July 22, 2012 appears as:
22.07.2012
When I switch the report's Language to English(en), July 22, 2012 appears as:
7/22/2012
How can I make the English date appear as 07/22/2012? i.e. the dates should appear as two digits regardless of the month being two digits or single digit
You can use custom date format such as MM/dd/yyyy. If you need custom format only for English report then you can use expression =IIf (User!Language = "en", "dd\mm\yyyy", "d")
You can use the following expression in you report to show the date in dd/mm/yyyy format. Following screenshot shows date time with and without modification to the expression.
Expression:
=string.Format("{0:MM/dd/yy}",Fields!ModifiedDate.Value)
Without modification
With Modification:
Hope this helps!