Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Class1> YourList = new List<Class1>();
- YourList.OrderByDescending(x => x.data.Date).ThenByDescending(x => x.data.TimeOfDay).ToList(); // sortowanie listy dat malejaco
- YourList.OrderBy(x => x.data.Date).ThenBy(x => x.data.TimeOfDay).ToList(); //sortowanie rosnaco
- DateTime date1 = new DateTime(2009, 8, 1, 0, 0, 0);
- if (date1 < DateTime.Now)
- Console.WriteLine("Less than the current time!");
- string userInput = "";
- DateTime userDate = DateTime.ParseExact(userInput, "dd-MM-yyyy", null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement