I want to switch system date between config date from table in DB and current date.
This is my step.
- I store configuration datetime to table in database
- I have add appsetting "UseCurrentDate" with value "True" or "False" in web.config
- In application start I read appsetting value from web.config and try to switch between 2 system date
I try to change date with my config from database with this solution. (Change system date programmatically)
How can I switch to current date if I set appsetting value to change system date to current date?
- Is it a good solution to do this?