By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 909 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

TDateTime type conversion

P: n/a
adm
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
Dec 13 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
http://blog.malcom.pl/2007/07/23/con...nix-timestamp/

The function is not in php but I'm sure you can convert it.

Dec 13 '07 #2

P: n/a
On 13 Dec, 12:06, macca <ptmcna...@googlemail.comwrote:
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.
Dec 13 '07 #3

P: n/a
adm
Great!
Now I know the mathematical formula it's easy to write a my own
function in php.
Thank you very much!
Andrea

Dec 13 '07 #4

P: n/a
On 13 Dec, 13:07, adm <andrea.demagist...@libero.itwrote:
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?
Dec 13 '07 #5

P: n/a
adm
My mistake was trying to search on google in my native language,
italian.
So I found nothing that can help me.

Excuse me for the time you lost...
and thank you again!
Andrea

Dec 14 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.