i remember when i didnt know this - i made this hugely complicated 'if then' script....then found that it was easy enough.
Probably best to just stick 'php time' into google - though i might copy it across for you later.
There are 2 different formats....
UNIXTIME - which is the number of seconds from the epoch (1st of Jan 1970) (if anyone wants to convert this to number of years / weeks / days/ hours /minutes / seconds ...then i made another script to do it...cos i dont know that much about strings, if someone wants to explain that would be cool)
Or there is the date format....
generally you get the unix format with the now() command, and get the date format with another one.... its all on google, i havnt remembered it - i just copy it from where i have it when i need it or look it up.
Reply