A part of the application that I am building should be accessed only during a particular time period.
I know we can get the current system time using the properties of DateTime in C#. If I use DateTime properties then the users can change their system time and access the part of application when ever they want.
Please let me know how to get the ACTUAL current time in C#.
You can query an NTP server. NTP servers provide you with the current time, and allowing you to be very accurate (that’s how computers synchronize clocks).
See an example here