SIM900 as RTC with Arduino Mega

Using that command gives you what you want, you just need to convert it to your desired format. I do not have that module but I assume you are getting a string.