N
Newbie
Hi,
I have a date in a flat file in the format of DDMMYY (280507) that I want
to insert into a database.
I have left/right and sub'd string to get the values of the day, month and
year into 3 string vars (strDay, strMonth, strYear)
Now I want to put the string back together, and concat the three strings so
its now dd/mm/yy
I then when I do a DateTime.Parse(strDate) it uses my local machine settings
(set to MMDDYY) and this then results in an invalid dataformat.
I also need to insert this into a SQL database.
Whats the best way to deal with this problem ???
I have a date in a flat file in the format of DDMMYY (280507) that I want
to insert into a database.
I have left/right and sub'd string to get the values of the day, month and
year into 3 string vars (strDay, strMonth, strYear)
Now I want to put the string back together, and concat the three strings so
its now dd/mm/yy
I then when I do a DateTime.Parse(strDate) it uses my local machine settings
(set to MMDDYY) and this then results in an invalid dataformat.
I also need to insert this into a SQL database.
Whats the best way to deal with this problem ???