private void ShowRange(string from, string to) { DateTime date1 = StringToDateConverter(from); DateTime date2 = StringToDateConverter(to); query.ShowRange(date1, date2).ForEach(x => { Console.WriteLine("{0} {1}: {2} szt.", x.Date, x.NameOfRecipe, x.SumOfPreparedBatches); }); //Console.WriteLine(date1.ToString()); //Console.WriteLine(date2.ToString()); }