ho una data di tipo datetime prelevata dal database cosi 2012-04-17 00:00:00
vorrei convertirla in timestamp

come si fa?