Jump to content

Date Format


jingamells

Recommended Posts

Hi,


I am using the below to try and change a string of dd/mm/yy hh:mm to yyyymmdd and getting the following error: 'Conversion failed when converting date and/or time from character string.'

convert(varchar(8),cast(ArrivalDateTime as date),112) as ArrivalDateTime,

what am i doing wrong?


TIA
James

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...