iggythedog91 Posted October 24, 2019 Share Posted October 24, 2019 Hello everyone !I have a report with dates parameters (java.util.date) and I can't pass them as arguments by URL.When I searched for a solution, I found that some people made it by passing dates with this format "yyyyMMddHHmmss", but when I try to do so, I haven't got the good date : /sites/default/files/user_uploads/iggythedog91/2019-10-24_14h32_54.png -> Is there a way to pass a Date parameter by URL ? (not with a string parameter converted to a date inside the query)Thanks in advance for your time ! Link to comment Share on other sites More sharing options...
Solution danoldenkampgmail.com Posted October 24, 2019 Solution Share Posted October 24, 2019 Try making a second parameter from the first datetime but make the new parameter a string.If you only need the date the simplest way is to format as YYYY-MM-DDYou should be able to pass that back into a Date. Link to comment Share on other sites More sharing options...
iggythedog91 Posted October 25, 2019 Author Share Posted October 25, 2019 Finally I tried with the format YYYY-MM-DD as you mentionned danoldenkamp and it worked directly in the URL !(&date_debut=2018-06-01)Thanks for your help ! 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