Convert getdate() to EST

derin picture derin · Jan 17, 2011 · Viewed 35.5k times · Source

I would like to convert getdate() in SQL Server to EST time.

Answer

RichardTheKiwi picture RichardTheKiwi · Jan 17, 2011

Have you considered GETUTCDATE() and performing the offset from there? If you mean EST as in standard time, then that is UTC-5, so

select dateadd(hour,-5,GETUTCDATE())