❔ Using C# and SQLite, I'm inputting a formatted date, and it's writing tot the database as a sum

A strange one, to be sure. I'm inputting something like '2022-01-13', and it's writing '2008'. Would anyone have any ideas? I'm writing a string with the date. Input date is loaded into a DateOnly and I'm encapsulated the properties of that DateTime with the specific information and hyphen formatting.
10 Replies
MODiX
MODiX3y ago
Angius#1586
REPL Result: Success
2022 - 1 - 13
2022 - 1 - 13
Result: int
2008
2008
Compile: 279.416ms | Execution: 74.050ms | React with ❌ to remove this embed.
Angius
Angius3y ago
It seems something is doing math lol
Japemaster Brad
Japemaster BradOP3y ago
Doesn't it just
Angius
Angius3y ago
Show code?
Japemaster Brad
Japemaster BradOP3y ago
bare with
Japemaster Brad
Japemaster BradOP3y ago
Angius
Angius3y ago
Place apostrophes around it Like it was a string
Japemaster Brad
Japemaster BradOP3y ago
Absolute diamond, thank you ❤️
mindhardt
mindhardt3y ago
Please /close
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?