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

Formatting Medium Date Using PHP

P: 1
Hello,
I am looking for some guidance on how to format a date field as DD/MM/YY when displayed using a PHP script. The field format used in the database is medium date.
Thanks in advance for your help.
May 26 '07 #1
Share this Question
Share on Google+
4 Replies


nico5038
Expert 2.5K+
P: 3,072
Not sure how PHP works with Access, but in an Access query you can use:

select format(datefield,"dd/mm/yy") as FormattedDate, ...

to format the resulting datefield.

Nic;o)
May 27 '07 #2

NeoPa
Expert Mod 15k+
P: 31,489
I think this question is probably more appropriate to the PHP forum so I'll move it there. I'll leave a link here for anyone interested.
May 27 '07 #3

pbmods
Expert 5K+
P: 5,821
Heya, Ollie56. Welcome to TSDN!

Hello,
I am looking for some guidance on how to format a date field as DD/MM/YY when displayed using a PHP script.
Have a look at date and strtotime.
May 27 '07 #4

NeoPa
Expert Mod 15k+
P: 31,489
Thanks pbmods.
And Ollie, don't be put off by the 'face'. He's not that frightening really ;)
May 27 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.