We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I parse my OData string with this datetime: datetime'2014-07-10T00:00:00.000'
datetime'2014-07-10T00:00:00.000'
I get an error: String was not recognized as a valid DateTime
String was not recognized as a valid DateTime
I noticed this code in DateTimeNode.cs
DateTimeNode.cs
var dateText = this.Text .Replace("datetime'", string.Empty) .Replace("'", string.Empty) .Replace(".", ":");
The last replace makes the datetime string: 2014-07-10T00:00:00:000 but it should be 2014-07-10T00:00:00.000
2014-07-10T00:00:00:000
2014-07-10T00:00:00.000
When I read the OData specifications:
datetime’yyyy-mm-ddThh:mm[:ss[.fffffff]]’ NOTE: Spaces are not allowed between datetime and quoted portion. datetime is case-insensitive
I don't think there is a need to replace the . with a :, right?
.
:
The text was updated successfully, but these errors were encountered:
I think you may be right there, good spot. I'll try to get this addressed in the next week or so.
Sorry, something went wrong.
@roysvork did you manage to merge this fix in, or would you like a PR?
Fix beyond-code-github#40
92bcbd0
No branches or pull requests
When I parse my OData string with this datetime:
datetime'2014-07-10T00:00:00.000'
I get an error:
String was not recognized as a valid DateTime
I noticed this code in
DateTimeNode.cs
The last replace makes the datetime string:
2014-07-10T00:00:00:000
but it should be2014-07-10T00:00:00.000
When I read the OData specifications:
datetime’yyyy-mm-ddThh:mm[:ss[.fffffff]]’ NOTE: Spaces are not allowed between datetime and quoted portion. datetime is case-insensitive
I don't think there is a need to replace the
.
with a:
, right?The text was updated successfully, but these errors were encountered: