c# - Reset Variables in window service on date change -



c# - Reset Variables in window service on date change -

i developing window service in downloading files server according date , date changes want variables reset default values.

i trying this:

if (datetime.now.tostring("hhmmsstt").contains("000000am")) { reset variables }

i having variable counts no. of files dowloaded in day. date changes, want variable reset 0. applied status not work not necessary when comparing ,time 12 o clock

you need save lastly time checked. if date (00:00:00 am) between lastly time , time, need reset variables.

c# windows visual-studio-2010 service

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -