mysql - how to get universal date time in c# -
I am in critical condition while developing a library management system, if a book returns, to insert book details One function is to take the date of the system as the date returned to the database, then by comparing the date of the lending and the date of return I can calculate properly, but this is the fact that from the date above the current date Change system date Taxes can be returned to the book without affecting it properly It incorporates the date of the system as the current date and it has now been changed.
Example:
It seems that the loan term is 7 days
the lending date is 11/05/2012
return date 20 / 05/2012 (looks like it is today and it gets in the form of system date)
There are now 2 days of delay (so it is OK to calculate)
If I change the date of the system to a previous date like 15/05/2012, it takes the date of the system as the date changed, so a book can be returned without properly calculating, whose Census should be fine?
There is no way to do this programmatically because you will always get the date set on that PC Where your system is running.
What you can do is obtain the current PC from any other PC / Server, or Administrator rights in that PC are configured so that any system time can change.
See this for the first option:
Comments
Post a Comment