none
Sync File Provider, I'm close to getting LastUpdateDate, but not quite there RRS feed

  • Question

  • I seem to be getting the right day,month and time, but my year is clearly wrong.  Below is a picture of my tiny code that does this. Any help would be appreciated.

     I believe my problem line is this below.  I had to guess at the column name property and I'm not sure its a 64bit long.


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Friday, May 13, 2011 7:34 PM

Answers

All replies

  • any thoughts on this? I need to fix it because my conflicts are not resolving correctly.

    Thanks,


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Saturday, May 21, 2011 2:15 PM
  • Peter,

    The .FromBinary() works if the value has been stored using .ToBinary() in the first place. The LastWriteTime is stored in a FILETIME structure, http://msdn.microsoft.com/en-us/library/ms724284(v=vs.85).aspx, you may have to do some conversion to get the value right in the managed code.

    Hope this helps,
    Sameer

     

    • Marked as answer by Peter Kellner Monday, May 23, 2011 11:17 PM
    Monday, May 23, 2011 10:52 PM
  • Thanks Sameer,

    That's a big help!  I'm planning on stopping by Redmond again in a few weeks, hope to see you again.


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Monday, May 23, 2011 11:17 PM