❔ 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
MODiX2y 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
Angius2y ago
It seems something is doing math lol
Japemaster Brad
Japemaster BradOP2y ago
Doesn't it just
Angius
Angius2y ago
Show code?
Japemaster Brad
Japemaster BradOP2y ago
bare with
Japemaster Brad
Japemaster BradOP2y ago
Angius
Angius2y ago
Place apostrophes around it Like it was a string
Japemaster Brad
Japemaster BradOP2y ago
Absolute diamond, thank you ❤️
mindhardt
mindhardt2y ago
Please /close
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server