i have a table storage where the partition key is the DateTime ticks generated every second.
I want to retrieve records from a certain date by querying the partition keys that were generated at that time.
i think i need a way where i supply a date and convert it to ticks. or is there a better approach for the query?
Sounds like you need the
.Ticksproperty on a datetime:http://msdn.microsoft.com/en-gb/library/system.datetime.ticks.aspx
Without really grepping your data structure, you may need some sort of between query to get all the records you need, possibly supplying two dates.
Note that if the ticks key isn’t generated via C#, then you may need to use whatever mechanism is generating the ticks to get a key at the same level of accuracy, see below link for t-sql example:
T-sql, ticks, timestamp