c# - BluePrism Reading data from excel datetime shifts -
keywords: datatable, datetime, blueprism
situation: reading data excel file datatable, datetime shifts.
example: have simple excel file contains table below:
id | date 1 03-07-2015 2 07-05-1998 3 11-11-1987
after reading excel file c# datatable using method (read xls file import datatable ) following table:
id | date 1 2/7/2015 9:00:00 pm 2 6/5/1998 9:00:00 pm 3 10/11/1987 10:00:00 pm
what i've tried:
- reading excel file differently (no luck);
- finding out datatable.locale. when run on c# console, locale computer's locale - da-dk. however, when run same function in code stage on blue prism, locale changed en-us. i've tried changing da-dk in blueprism, datetime parsing not impacted.
when import excel using c#, works fine. however, not when run exact same code on blue prism. understand when string being converted datetime, set date 00:00:00 <pm|am>.
why along way subtraction happens beyond me.
Comments
Post a Comment