New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please specify DateTime conversion fully #19284
Comments
@ishepherd Thank you for the detailed feedback. I have assigned this to the content author to evaluate and update as appropriate. |
Simpler version of the question: Are you using the .NET DateTime I would check myself but the library is closed source. |
@ishepherd Sorry abou the delay in getting back on this, we use the ISO data format: https://en.wikipedia.org/wiki/ISO_8601 you have to serialize the datetimeoffset as a lexographically sorted string in order for Cosmos DB to complete the operation. We will now close this issue, if you have further questions feel free to reopen. |
#please-close |
Hi @SnehaGunda, please don't close. Here is an example: Say I have a document with
and I run a query
This query will not match the document. The strings are equal times, but they are not equal lexicographically, due to the different decimal places. ISO 8601 does not specify decimal places. Therefore please answer,
|
@MarileeTurscak-MSFT Please reopen. @SnehaGunda said I could reopen if question not answered, but I guess I do not have rights to do it. Sneha, please see my comment above #19284 (comment) |
@ishepherd Understand that you are seeking a product related question. This channel is for addressing documentation related issues. Please take a look at the the Cosmos DB MSDN threads related to date time conversion. If after researching this you are at a complete loss, please use the email alias: askcosmosdb@microsoft.com. Thank you. |
@ishepherd It uses Newtonsoft under the hood, so thus it uses whatever global settings Newtonsoft is configured with. You can override these settings in the DocumenClient constructor, so if you create your DocumentClient with |
👍 @daxfohl but note that |
Yeah, in fact it doesn't appear to work at all. Still looking for a
solution to this myself.
…On Thu, Jan 3, 2019 at 5:02 PM Iain Shepherd ***@***.***> wrote:
👍 @daxfohl <https://github.com/daxfohl> but note that serializerSettings
is not a full solution because of Azure/azure-cosmos-dotnet-v2#351
<Azure/azure-cosmos-dotnet-v2#351>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19284 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA3PcYQ_Fvl0b3enexqPqY2ZCngfDqd8ks5u_qhBgaJpZM4YsYtx>
.
|
I suspect that the second fraction always has 7 digits and is always followed by a Z. Please confirm?
We have had an issue recently from inexact string/date comparison in cosmos queries, so I'd like this to be firmly specified
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: