Beispiel #1
0
        public static void ExecutePdfReport()
        {
            Console.WriteLine("Enter startDate and endDate separated by whitespace. (e.g. 2014-07-21 2014-07-21)");
            string input = Console.ReadLine();

            try
            {
                string[] dates = input.Split(' ');
                PdfManager.ExportDataToPdf(DateTime.Parse(dates[0]), DateTime.Parse(dates[1]));
            }
            catch (Exception e)
            {
                Console.WriteLine("Invalid input." + e.Message);
            }
        }