How can I convert a varchar field of the form YYYYMMDD to a datetime in T-SQL?
Thank you.
select convert(datetime, '20081030')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With