php, mssql &datetime

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
detonator
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2004 8:37 am

php, mssql &datetime

Post by detonator »

hi,

ok i found some threads which handles this topic but none would help me.
ok i select a datetime field.
i ever get: Sep 27 2004 3:02PM
changing the session language doesn't work :?
i want it exactly the way it is stored in the database:
2004-09-27 15:02:10.000
the output format Sep 27 2004 3:02PM can i change to 2004-09-27 15:02
but i need the seconds and the milliseconds too because this field is my primary key and without the 100% output i'm not able to choose the right data
any ideas ?
thx in advance

edit: oops wrong section sorry :oops:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Are you using MySQL, mSQL or MS SQL?

Mac
detonator
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2004 8:37 am

Post by detonator »

i'm using MS SQL version 8.00
Post Reply