in reply to Fetching Only Month and Year From localtime()

Either "print scalar localtime" for a pre-formatted string, or else grab the elements of the localtime array and format the string yourself (not forgetting about things like 0-based months).