Sql Server Equivalent of Trunc
TRUNC(LD.FECHA_CREA)

I need convert it to SQL Server

2

2 Answers

You can use following condition in your query :

CONVERT(DATETIME, CONVERT(DATE, LD.FECHA_CREA)) = CONVERT(DATETIME, CONVERT(DATE, GETDATE()))
0

You could use this equivalent in SQL Server:

CONVERT(DATETIME, CONVERT(DATE, LD.FECHA_CREA));

Check:

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest