UnixTime_To_DateTime2

Converts a Unix Time (Epoch) value to a datetime2 value.

  • Free Function
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

SELECT SQLHTTP.net.UnixTime_To_DateTime2 ( @UnixTime )

Arguments:

Name Type Description
@UnixTime numeric(20,7) Unix time ( epoch ) value.

Return Type:

datetime2

Sample Usage:

See Also: