none
DateTime function RRS feed

  • Question

  • Hi Experts, 

    How can I convert the below SQL  to an equivalent C# method.. this is the input value ''2019-12-11 04:57:00.5456551 +00:00''

    SELECT DATEADD(mi, DATEDIFF(mi, GETUTCDATE(), CURRENT_TIMESTAMP),CAST('2019-12-11 04:57:00.5456551 +00:00' AS DATETIME2)) 


    Thanks

    Priya

    Thursday, December 12, 2019 5:19 AM

Answers