how to convert a date into DD/MM/YYYY/HH:MM:SS in c# : i wanted to convert date into DD/MM/YYYY/HH:MM:SS format. the date is given by the user.

i am  using the code below


            string fromdate = context.Request.QueryString["fromdate"];
            string todate = context.Request.QueryString["todatedate"];

            DateTime fromDaten = DateTime.MinValue;
            DateTime toDaten = DateTime.MinValue;

            try
            {
                fromDaten = FormatDate(fromdate + " 00:00:00");
                toDaten = FormatDate(todate + " 00:00:00");
            }
            catch (Exception ex) { }

i wanted to convert 'fromdate' and 'todate' into DD/MM/YYYY/HH:MM:SS format. when i try to do this i got '01/01/0001/00:00:00'


how can i solve this?

thanks in advance.

