date php
#include <iostream>
#include <ctime>
int main() {
// Get the current time
time_t currentTime = time(0);
// Convert the current time to a string
char* dateTimeString = ctime(¤tTime);
// Print the current date and time
std::cout << "Current Date and Time: " << dateTimeString << std::endl;
return 0;
}