By: Marc Lovelace
Date: 2005-06-12
Time: 14:08
|
Date Format w/ PHP Function
Hi Folks.
My DB stores a timestamp like this: YYMMDDHHmm. I have a PHP function that'll convert it to something more useful.. If I was pulling the data by hand and then displaying it all via PHP this wouldn't be a big deal... how can I incorporate this function with the Merge call to TBS?
The Code takes the format in my DB and converts it to a valid timestamp value that I can throw into the PHP date() function.
Thanks!
Marc
|
By: Skrol29
Date: 2005-06-13
Time: 14:57
|
Re: Date Format w/ PHP Function
Hello,
You can use parameter 'onformat' ans use a custom function to re-format the data.
If you custom function convert your string into a time stamp, then you can use it, combined with parameter 'frm' which enables you to format a timestamp into usual date formats.
|
By: Marc Lovelace
Date: 2005-06-13
Time: 16:56
|
Re: Date Format w/ PHP Function
OK.. sounds like you've already handled this before..
Can you give me an idea of what the Merge call would look like for that? Many thanks.
|
By: Skrol29
Date: 2005-06-14
Time: 10:03
|
Re: Date Format w/ PHP Function
There is an example at the Example page.
It is called "Event functions".
The syntax of the functions are also explained in the manual.
|
|
Posting in progress.
Please wait...
|