#include <iostream>
#include <ctime>
time_t t = time(NULL);
tm* timePtr = localtime(&t);
cout << "day of month = " << (timePtr->tm_mday) << endl;
Get day of month
Display the current day of the month
0 Comments
Add Comment
Log in to add a comment
#include <iostream>
#include <ctime>
time_t t = time(NULL);
tm* timePtr = localtime(&t);
cout << "day of month = " << (timePtr->tm_mday) << endl;
Get day of month
Display the current day of the month
Log in to add a comment