Hi
I use the snippet
- for each echeance in echeancierList
{
dueDate0 = echeance.getJson("Echeance_dt");
dueDate = dueDate0.tostring("YYYY-MM-dd");
info "input : "+dueDate0;
info "output :"+dueDate;
- }
expected result
- input : 31/01/2024
- output : 2024/01/31 (yyyy-mm-dd)
- input : 01/03/2024
- output : 2024/03/01 (yyyy-mm-dd)
Below is the result (it is Ok for the 1rst , but for the 2nd item there is an inapropriate result)
- input : 31/01/2024
- output : 2024/01/31 (yyyy-mm-dd)
- input : 01/03/2024
- output : 2024/01/03 (yyyy-dd-mm)
what is wrong whith this snippet ?