Search Results for 'Week'

1 POSTS

  1. 2016.01.19 C# 요일 구하기

C# 요일 구하기

Posted 2016.01.19 15:32

private string GetDayOfWeek(DateTime dateTime)

{

var day = dateTime.DayOfWeek;

string week = string.Empty;

switch (day)

{

case DayOfWeek.Monday:

week "";

                  break;

case DayOfWeek.Tuesday:

week "";

break;

case DayOfWeek.Wednesday:

week "";

break;

case DayOfWeek.Thursday:

week "";

break;

case DayOfWeek.Friday:

week = "";

break;

case DayOfWeek.Saturday:

week = "";
break;

case DayOfWeek.Sunday:

week = "";

break;

default:

break;

}

return week;

}


신고

티스토리 툴바