sqldatetime ( Convert US to UK date format style)

  • Thread starter Thread starter Niclas Lindblom
  • Start date Start date
N

Niclas Lindblom

Hi,

I am trying to use the system.data.sqltypes.sqldatetime type in ADO .Net. I
have noticed that that when using the sqldatatime.parse method, the input
string must be in US style formatting with month/Date/Year for this to work.
How can I convert my current date that is returned from
now.ToShortDateString, which is displayed as Day/Month/Year (I am in the UK)
to the US date style ?

Regards

Niclas
 
Please ignore previous post. I missed that the constructor took a date as
input and thought I was supposed to use the parse method...

Thanks anyway

Niclas
 
Back
Top