Get Last Day Of Week - CSharp System

CSharp examples for System:DateTime Week

Description

Get Last Day Of Week

Demo Code


using System;//from   w ww.j  a  v a  2  s. c o m

public class Main{
        public static DateTime GetLastDayOfWeek(this DateTime datetime) {
            return GetFirstDayOfWeek(datetime).AddDays(6);
        }
}

Related Tutorials