#1 2015-04-28 00:41:19

Al3tz
Member
Registered: 2015-04-04

Ho to pass Date Parameter by URL

Hi,

I have configurated a report using httpauthexport servlet, if i try pass date parameter execution fail showing error on parse date.
Could not parse date: 1-04-2014

http://server.com/reportserver/reportse … =1-04-2014
or
http://server.com/reportserver/reportse … 01-04-2014
or
http://server.com/reportserver/reportse … 01/04/2014

What is the correct way to pass date parameter.

Thanks.

Offline

#2 2015-04-28 06:39:27

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Ho to pass Date Parameter by URL

Hi Alex,

the value is parsed as

SimpleDateFormat.getDateInstance().parse(value)

which takes the server Locale. You could use the following script to see how it formats dates.

import java.text.SimpleDateFormat;

SimpleDateFormat.getDateInstance().format(new Date())

Cheers
-Arno

Offline

#3 2015-04-28 18:37:08

Al3tz
Member
Registered: 2015-04-04

Re: Ho to pass Date Parameter by URL

Thanks Arno,
My problem is solved with your suggestion, it's posible configure date format used for ReportServer?

Would be great to add a panel with the current settings that affect system execution (JVm stats, locale, etc)

Greetings from Mexico
-Al3tz

Offline

Board footer

Powered by FluxBB