How to convert LastModifiedTime value to MssCrawlUrl table?
I tried the request below,
Select CAST(LastModifiedTime as datetime) From MssCrawlUrl Where DisplayURL like '<DisplayURL>'
But he gives an error
'An arithmetic overflow error converting an expression to a datetime data type.'
SharePoint. API. "" , , , . . , ! Microsoft.
Visual How To API. . MSDN .
ans
DECLARE @dt AS bigint SET @dt = <BIGINT> SELECT DATEADD(ms, (@dt / CAST(10000 AS bigint)) % 86400000, DATEADD(day, @dt / CAST(864000000000 AS bigint) - 109207, 0))
Source: https://habr.com/ru/post/1717830/More articles:Is there a way to avoid IE7 quirks mode when rendering XML + CSS? - cssWhat is the "update path" from Assertion.AssertEquals? - .netWPF: problem with GridViewColumn.Header (reordering) - wpfUnique identifier for a Sharepoint document when crawling using SiteData Webservice - uniqueidentifierWhat is a good and useful WCF programming project? - .netImmutable arrays in .net (C #): a reasonable approach? - immutabilityWhy do text-based technical articles often enclose terms in back ticks and single quotes? - textWhat is the MSTest attribute to enable a test resource? - unit-testingLINQ Aggregate vs nested foreach - linqBeyond the scope of a column in a list column header - user-interfaceAll Articles