I'm using a hell of a lot of dates in my databases and wondered if it was
possible to change the date format in my databases from -00-00 to:
00-00-...?
Has anyone else managed to do this or use any workarounds I could use
perhaps...?
I'm just getting a little hacked of having to explode
[snip]
I'm using a hell of a lot of dates in my databases and wondered if it
was
possible to change the date format in my databases from -00-00 to:
00-00-...?
Has anyone else managed to do this or use any workarounds I could use
perhaps...?
I'm just getting a little hacked of having to
Hi Harlequin,
Harlequin wrote:
[...]
I'm just getting a little hacked of having to explode the damn things every
time I use them.
You EXPLODE them??
When you want it human readable why not simply
preg_replace(/(\d{4})-(\d{2})-(\d{2})/, $3-$2-$1 [*], $input);
it?
or preg_replace it to something
: [PHP] Changing MySQL Date Format
[snip]
I'm using a hell of a lot of dates in my databases and wondered if it
was
possible to change the date format in my databases from -00-00 to:
00-00-...?
Has anyone else managed to do this or use any workarounds I could use
perhaps...?
I'm just
Stephan Fiedler wrote:
Hi Harlequin,
Harlequin wrote:
[...]
I'm just getting a little hacked of having to explode the damn things
every
time I use them.
You EXPLODE them??
When you want it human readable why not simply
preg_replace(/(\d{4})-(\d{2})-(\d{2})/, $3-$2-$1 [*], $input);
it?
or
5 matches
Mail list logo