public void Jifenchange ()//integral method { //Integration module//Judging the date and task completion log database The date size taken out, Note: the Compare () method will only return 1,0,-1. 1 means front is greater than back, 0 is equal,-1 is less than if (ids! = null && IDs. Tables[0]. Rows.Count > 0)//If present date { DateTime nowtime = Dateti Me. now; DateTime createtime = convert.todatetime (IDs. Tables[0]. rows[0]["Creatime"]. ToString ()); if (Datetime.compare (nowtime. Date, Createtime. Date) = = 1)//Only the current time is greater than the database time to add points { &NBSP ; if (tsk. Isstop = = "0")//determine whether to deactivate the rule { &NBSP ; //daily login points } &N Bsp } } else//insert points if not present { &NBSP ; if (tsk. Isstop = = "0") { //daily login points &N Bsp } } }
Comparison of
Net sign-in points (one time per day login points only)