<Table> <Tr> <Th_colspan="2"> "When I Was Your Man" </Th> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th_colspan="2"> Single by Bruno Mars </Th> </Tr> <Tr> <Th_colspan="2"> from the album Unorthodox Jukebox </Th> </Tr> <Tr> <Th> Released </Th> <Td> January 15, 2013 </Td> </Tr> <Tr> <Th> Format </Th> <Td> <Ul> <Li> CD </Li> <Li> digital download </Li> </Ul> </Td> </Tr> <Tr> <Th> Genre </Th> <Td> Pop </Td> </Tr> <Tr> <Th> Length </Th> <Td> 3: 34 </Td> </Tr> <Tr> <Th> Label </Th> <Td> Atlantic </Td> </Tr> <Tr> <Th> Songwriter (s) </Th> <Td> <Ul> <Li> Bruno Mars </Li> <Li> Philip Lawrence </Li> <Li> Ari Levine </Li> <Li> Andrew Wyatt </Li> </Ul> </Td> </Tr> <Tr> <Th> Producer (s) </Th> <Td> The Smeezingtons </Td> </Tr> <Tr> <Th_colspan="2"> Bruno Mars singles chronology </Th> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> "Locked Out of Heaven" (2012) </Td> <Td> "When I Was Your Man" (2013) </Td> <Td> "Treasure" (2013) </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> "Locked Out of Heaven" (2012) </Td> <Td> "When I Was Your Man" (2013) </Td> <Td> "Treasure" (2013) </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th_colspan="2"> Music video </Th> </Tr> <Tr> <Td_colspan="2"> "When I Was Your Man" on YouTube </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> </Table> <Tr> <Th_colspan="2"> "When I Was Your Man" </Th> </Tr>

Who wrote the song when i was your man