Need to change this format : dd.MM.yyyy to yy/MM/dd
AssignDate = ExtractDataTable.rows(0)(“Date”).toString
Need to change this format : dd.MM.yyyy to yy/MM/dd
AssignDate = ExtractDataTable.rows(0)(“Date”).toString
Give AssignDate= ExtractDataTable.rows(0)(“Date”).ToString(“yy/MM/dd”) a shot:
Hope that helps!
Hi!
ExtractDataTable.rows(0)(“Date”).toString(“yy/MM/dd”)
Regards,
NaNi
Hi @Soudios
For each row in Extract Datatable
Assign
LHS
CurrentRow(“date”)
RHS
Cdate(CurrentRow(“date”).toString).toString(“yy/MM/dd”)
or
DateTime.ParseExact(CurrentRow(“date”).ToString,"dd.MM.yyyy”, System.Globalization.CultureInfo.InvariantCulture).toString(“yy/MM/dd”)
Out side the body of loop
Use ExtractDatatable with the date format changed!
Regards
Hi @Soudios
I think you have missed the loop !
Use for each row in datatable
And then assign the
CurrentRow(“Date Piece”) = DateTime.ParseExact(row("Date Piece ").ToString,dd.MM.yyyy”, System.Globalization.CultureInfo.InvariantCulture).toString(“yy/MM/dd”)
Regards
Thank you its working
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.