This is a discussion on TDateTime type conversion within the PHP Language forums, part of the PHP Programming Forums category; Hello everybody, here is the question: I've got a date in TDateTime type (Delphi) and I want to convert ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello everybody,
here is the question: I've got a date in TDateTime type (Delphi) and I want to convert it in another format, for example yyyy-mm-dd hh:mm:ss. Is there a function to do it with PHP? And if it doesen't exist do you give me any suggestion? Thank you very much Andrea |
|
|||
|
http://blog.malcom.pl/2007/07/23/con...nix-timestamp/
The function is not in php but I'm sure you can convert it. |
|
|||
|
On 13 Dec, 12:06, macca <ptmcna...@googlemail.com> wrote:
> http://blog.malcom.pl/2007/07/23/con...nix-timestamp/ > > The function is not in php but I'm sure you can convert it. I found http://www.swissdelphicenter.ch/en/showcode.php?id=844 by searching for: TDateTime conversion php which whilst also not in php is a similar algorithm and easily converted. So my suggestion is to search on Google, find something similar and rewrite it in php. |
|
|||
|
On 13 Dec, 13:07, adm <andrea.demagist...@libero.it> wrote:
> Great! > Now I know the mathematical formula it's easy to write a my own > function in php. > Thank you very much! > Andrea But why didn't you find these when you did your Google search for: TDateTime conversion php before you posted here asking us to do the search? |