Gossamer Forum
Home : General : Perl Programming :

Convert yyyy-mm-dd format into UNIX timestamp...

Quote Reply
Convert yyyy-mm-dd format into UNIX timestamp...
Hi,

I'm trying to convert a normal date (i.e yyyy-mm-dd), into a UNIX timestamp. Thus far, I have;

date_transform ($date, '%yyyy%-%mm%-%dd%', '%yyyy%%m%%dd%%H%%MM%%ss%');

...but that doesn't seem to work right :/

Any ideas? Smile

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Convert yyyy-mm-dd format into UNIX timestamp... Andy 14131 Sep 21, 2005, 3:23 AM
Thread Re: [Andy] Convert yyyy-mm-dd format into UNIX timestamp...
Volker 13946 Sep 21, 2005, 4:54 AM
Thread Re: [Volker] Convert yyyy-mm-dd format into UNIX timestamp...
Volker 13913 Sep 22, 2005, 2:47 AM
Post Re: [Volker] Convert yyyy-mm-dd format into UNIX timestamp...
Andy 13937 Sep 24, 2005, 12:50 AM