0

How to convert the timestamp from AWS SQS queue to C# datetime value?. [SentTimestamp, 1513139344524] this is a sample value in the attributes of one of the message. The region I am using for the queue is ap-southeast-2.

George
  • 3
  • 2
  • I tried with that and it throws error. ArgumentOutofRangeException (Value to add was out of range) – George Dec 13 '17 at 06:35
  • 1
    The solution presented in the duplicate is for seconds. AWS SQS timestamps are in milliseconds, so you'll need to change that function that adds Seconds to AddMilliseconds and try again. This was detailed in one of the comments on that answer. – Yannick Meeus Dec 13 '17 at 06:36
  • Could you share the code you have already try'd – jarnohenneman Dec 13 '17 at 06:39
  • Thanks for your help @Yannick. It worked with milliseconds. – George Dec 13 '17 at 06:52

0 Answers0