About 9,950 results
Open links in new tab
  1. Convert string MMDDYYYY to a date – SQLServerCentral Forums

    Dec 20, 2018 · SQL Server 2012 - T-SQL; Convert string MMDDYYYY to a date; Post reply. 1; 2; Next; Convert string MMDDYYYY to a date. below86. SSChampion. Points: 11563. More actions . December 20, 2018 at 2:47 pm

  2. Convert date to MMDDYYYY – SQLServerCentral Forums

    Feb 9, 2016 · Hi All, I need to export data out to a txt file with the date format of MMDDYYYY - the source date is a datetime (2015-09-01 00:00:00.000) format - below is the solution I have:

  3. Convert getdate () to date only – SQLServerCentral Forums

    Oct 4, 2004 · select @date = CAST(CAST(getdate() as varchar(11)) as datetime) in all cases the convert/cast back to datetime can be ommitted as SQL will do it anyway and it looks simpler in the code declare ...

  4. How do I convert string date values from mmddyy to mm/dd/yyyy?

    Feb 25, 2000 · Hi friends, I have date in the format of mmddyy but will like to convert this to date field in the format of mm/dd/yyyy. Example: 022500 to be converted to 02/25/2000.

  5. Convert Date to Julian Date – SQLServerCentral Forums

    Nov 27, 2017 · SQL Server dates can be cast as decimals, with the integer portion as days since 1900-01-01 00:00. The Julian date is also a decimal value of days since a base date.

  6. Convert int date (YYMMDD) to datetime - SQLServerCentral

    Jun 11, 2009 · Try to use the following function. You need to convert your int date to varchar and then try following function. for example. declare @dateI int. declare @dateS varchar(10)

  7. Convert DATETIME, trim leading zeros - SQLServerCentral

    Jan 1, 2012 · How can I alter this convert statement to return 1/25/2012 rather than 01/25/2012. Or return 1/1/2012 rather than 01/01/2012 SELECT CONVERT(varchar(10),getdate(),101)

  8. Convert integer date to datetime – SQLServerCentral Forums

    Mar 5, 2014 · Hi, I have 2 columns with integer values, Column1=Date, Column2=Time. and I want to convert them into a datetime format Column3. How do I convert this integers to datetime?

  9. The Fastest Way to Combine DATE and TIME Data Types to a …

    Feb 13, 2009 · This works because in T-SQL it is possible to add (or subtract) two DATETIME values, and you’ll find that it produces exactly the desired result, which is: 2015-08-27 15:33:21.057.

  10. Julian date YYYYJJJ into YYYYMMDD – SQLServerCentral Forums

    Mar 22, 2010 · here's how to convert your julian date; the other appears to already be datetime....if it's not, explicitly convert it to datetime. update table a Set a.field1 = b.field2

Refresh