Quick fix for pldm bios GetDateTime.

Earlier:

Date & Time :
DD-MM-YYYY HH:MM:SS - 03-02-2020 06:57:15

After change:

Date & Time :
YYYY-MM-DD HH:MM:SS - 2020-02-03 06:37:23

Reason for the change:

To keep the output of GetDateTime consistent with the input to SetDateTime.

Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
Change-Id: I057dbdd7fd471fbd79affc2e983c5314217e6293
diff --git a/tool/pldm_bios_cmd.cpp b/tool/pldm_bios_cmd.cpp
index 752018e..0ff32bd 100644
--- a/tool/pldm_bios_cmd.cpp
+++ b/tool/pldm_bios_cmd.cpp
@@ -56,11 +56,13 @@
             return;
         }
         std::cout << "Date & Time : " << std::endl;
-        std::cout << "DD-MM-YYYY HH:MM:SS - ";
-        setWidth(day);
+        std::cout << "YYYY-MM-DD HH:MM:SS - ";
+        std::cout << bcd2dec16(year);
         std::cout << "-";
         setWidth(month);
-        std::cout << "-" << bcd2dec16(year) << " ";
+        std::cout << "-";
+        setWidth(day);
+        std::cout << " ";
         setWidth(hours);
         std::cout << ":";
         setWidth(minutes);