I'm using Thread.CurrentThread.CurrentCulture to display culture-sensitive data on the UI. It works well, as I just set it in one place and it affects entire application. The problem right now is when I'm saving the data to sqlite database, it's converting the datetime format before saving it, which causes problem when I'm parsing it the from the db afterward.
specifically, it's Norwegian datetime format which uses . instead of /
e.g 02/21/2017 becomes 02.21.2017
I can solve this problem by setting the culture to invariant before I do any update or insert then revert back the culture when it's done. This is not ideal because I'll have to manually change every single insert.
does sqlite provide any setting that allows me to force it to use invariant culture or is there any other way to set culture which avoid this issue?
edit. This is for Xamarin.iOS, I'm trying to avoid any major code change as the project is shared across another platform(windows wpf, which doesn't have the problem)