#include <iostream>
#include <sstream>
#include <string>
#include <vector>
// Function to split date and time from a column in a database browser
void splitDateTime(const std::string& dateTimeColumn) {
// Placeholder variables for date and time
std::string date, time;
// Use stringstream to split the date and time
std::stringstream ss(dateTimeColumn);
// Read date part
std::getline(ss, date, ' ');
// Read time part
std::getline(ss, time);
// Display the separated date and time
std::cout << "Date: " << date << std::endl;
std::cout << "Time: " << time << std::endl;
}
int main() {
// Example of usage
std::string dateTimeColumn = "2023-12-10 15:30:45";
splitDateTime(dateTimeColumn);
return 0;
}