   date function
  I want to access the current date as month and day and year but I want the values to be separate.This may not be possible in c++   
  #include<ctime> and use localtime( time( ) )   ;  if you use the dos.h lib, you can use the date and time like this:for the date:#include <iostream.h>#include <dos.h>void main(){   date systemdate;   getdate(&systemdate);   cout << "The date is: "   << int(systemdate.da_day) << " - "   << int(systemdate.da_mon) << " - "   << systemdate.da_year;  system("Pause");  return 0;}for the time:#include <iostream.h>#include <dos.h>void main(){   time systemtime;   gettime(&systemtime);   cout << "The time is: "   << int(systemtime.ti_hour) << " : "   << int(systemtime.ti_min) << " : "   << int(systemtime.ti_sec) << ","   << int(systemtime.ti_hund);  system("Pause");  return 0;}