Is there an easy way to convert the date stored in varchar in mon-yy format (for example, "Feb-09") to datetime, which converts any invalid values ββto null.
I am currently using string manipulation in conjunction with the case argument, but this is rather cumbersome.
For real values, you can just put a day on it, and this is the full date:
convert(datetime,'01-' + 'Feb-09',120)
It will do it.
SELECT convert(datetime,'01-' + 'Feb-09',120)
CONVERT( DATETIME, "Feb-09", 64, 7 )
Source: https://habr.com/ru/post/1703904/More articles:How to properly implement IWebPartField.Schema when providing a string field - c #How to write a hyperlink to the eclipse console from the plugin - eclipsehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1703901/ruby-rssatom-processor-that-knows-which-items-i-have-already-processed-in-the-feed&usg=ALkJrhgHtW7fIGrJ31HobYVx6A7ecglq_QCan Oracle TDE protect data from the database administrator? - oracleC # Select distinguishing values ββfrom IGrouping - c #Unable to connect to SQL Server remotely or locally after reboot - sql-serverSharePoint: Error Unregistering EventReceiver in ContentType - content-typeAutomatically reorganize a loop into a recursive method? - javaHow to put different styles on two identical elements ? - htmlsegmentation error on Unix - possible stack corruption - cAll Articles