Code:
For finding the format of date and time with different form,then we can use the following code:

 #include<Windows.h>
 
#include<stdio.h>

 void main()
{
	SYSTEMTIME var_t;
	
        GetSystemTime(&var_t);
	 
           printf("%d\t:%d\t:%d\t:%d\t:%d\t:% d\t"	,var_t.wYear,var_t.wMonth,var_t.wDay
 	,var_t.wHour,var_t.wMinute,var_t.wSecond);

}