locked
How to get only Modified records(Types) after a specifiedDateTime RRS feed

  • Question

  • Hi,

    While trying to get the modified(Created) Types from Health Vault By specifying the LastSynchDateTime. But Because of the Time difference between My Server and HealtVault I am getting the Already synced records if I Synchronized immediately.
    This problem is coming because we saving LastSynchDateTime in My Time Zone. To get the modified we are converting LastSynchDateTime to GMT timeZone and setting this to

    filter.UpdatedDateMin = lastSynchDate;

    Because of small difference in Converting Datetime it is giving already synched Records. How to Resolve this?
    Or is there any to get The current GMT DateTime?

    Thank you,
    Chellamnaidu

    Monday, November 2, 2009 1:30 PM

Answers

  • Hi Aneesh,

    Thanks it works for me.

    Regards
    Chellamnaidu
    • Marked as answer by chellamnaidu Monday, November 2, 2009 4:38 PM
    Monday, November 2, 2009 4:38 PM

All replies

  • Hello Chellamnaidu,

    You can use the DateTime.UtcNow property to get the GMT time.
    More information on this can be found at the link http://msdn.microsoft.com/en-us/library/system.datetime.aspx.

    Hope this helps.

    Thanks and Regards,
    Aneesh D.
    Monday, November 2, 2009 4:19 PM
  • Hi Aneesh,

    Thanks it works for me.

    Regards
    Chellamnaidu
    • Marked as answer by chellamnaidu Monday, November 2, 2009 4:38 PM
    Monday, November 2, 2009 4:38 PM