Hello Intrexx community,
I am not sure if this topic is already here, but I am having problems with parsing String values to date.
I have a 2 edit field elements set do Date with this format ("16/12/2021"), (date From and dateTo).
I have a button with JS on it, which should take those values and send them throguh JSON, but from there I am not able to parse string to date in groovy, I've tried several methods but all of them failed with parseerror message in the browser with no error message in it, So I don't know at which point I am making a mistake.
Next step in my code should be a SQL select within range of those Dates, but I cannot do this select with string value.
I've tried several forums and bits of code, but none worked for me, so maybe you've came acros this issue in the past.
Thank you
Kind regards,
Patrik
I am not sure if this topic is already here, but I am having problems with parsing String values to date.
I have a 2 edit field elements set do Date with this format ("16/12/2021"), (date From and dateTo).
I have a button with JS on it, which should take those values and send them throguh JSON, but from there I am not able to parse string to date in groovy, I've tried several methods but all of them failed with parseerror message in the browser with no error message in it, So I don't know at which point I am making a mistake.
Next step in my code should be a SQL select within range of those Dates, but I cannot do this select with string value.
I've tried several forums and bits of code, but none worked for me, so maybe you've came acros this issue in the past.
Thank you
Kind regards,
Patrik
Kommentar