How to get realm date

How to get & string current realm date and time.

How to string for example

ChatHandler(player->GetSession()).PSendSystemMessage(“Current realm time 11.february.2014 10:50AM”);

Then to check if today is date X

For date and time you may can check how the logging system is doing this.

Im sure there are some functions.