Yet another date formatting problem :(

Posted by Jonesy on Stack Overflow See other posts from Stack Overflow or by Jonesy
Published on 2010-04-13T12:38:00Z Indexed on 2010/04/13 12:42 UTC
Read the original article Hit count: 391

Filed under:
|
|

Hi folks,

I seem to have a date formatting problem every day!

I am querying a table and am getting a date back in the format dd/mm/yyyy (as a string btw). Brilliant! thats what I want. But, now I want to convert that string to a date so i can do

dim dayNumber as integer = day.DayOfWeek 

But when I convert it to a date it changes it to #m/dd/yyyy#. AHHHH! how can I change this?

Cheers

© Stack Overflow or respective owner

Related posts about datetime

Related posts about formatting