Exemplo n.º 1
0
        static void IllionDateTransform()
        {
            var input = new List <string> {
                "2010/03/30", "15/12/2016", "11-15-2012", "20130720"
            };

            DateTransform.ChangeDateFormat(input).ForEach(Console.WriteLine);
        }
Exemplo n.º 2
0
        public void ChangeDateFormat_BaseCase_Success()
        {
            var input = new List <string> {
                "2010/03/30", "15/12/2016", "11-15-2012", "20130720"
            };

            CollectionAssert.AreEqual(new List <string> {
                "20161215", "20121115", "20130720"
            }, DateTransform.ChangeDateFormat(input));
        }