-
We have to save only the date in a database. To avoid bugs we don't want to save the time. |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Jul 9, 2024
Replies: 1 comment
-
Do you need the datetime expression APIs? If not, I'd suggest defining a type converter that maps If you do, it gets a little weird but you can define a type converter that maps from |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gliden
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you need the datetime expression APIs? If not, I'd suggest defining a type converter that maps
DateTime
values (or a custom type you have that only supports year-month-day) to strings and define the respective columns as text.If you do, it gets a little weird but you can define a type converter that maps from
DateTime
toDateTime
values, apply that to your date time columns and perhaps drop the time part there?