Question: who wrote the song when i was your man
Answer: `` When I Was Your Man '' Single by Bruno Mars from the album Unorthodox Jukebox Released January 15 , 2013 Format CD digital download Genre Pop Length 3 : 34 Label Atlantic Songwriter ( s ) Bruno Mars Philip Lawrence Ari Levine Andrew Wyatt Producer ( s ) The Smeezingtons Bruno Mars singles chronology `` Locked Out of Heaven '' ( 2012 ) `` When I Was Your Man '' ( 2013 ) `` Treasure '' ( 2013 ) `` Locked Out of Heaven '' ( 2012 ) `` When I Was Your Man '' ( 2013 ) `` Treasure '' ( 2013 ) Music video `` When I Was Your Man '' on YouTube