Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How does C# get the system date and week and convert the week into an integer?
How does C# get the system date and week and convert the week into an integer?
Class? procedure

{

Static electricity Invalid? Main(string[]? Parameter)

{

Console. WriteLine ("Today is {0} {1} month {2}? Week {3}, date and time. Now One year,

Date and time. Now Month, date. Now. Day, (int) date and time. Now. dayofweek);

}

} The output is as follows: