Current location: Hot Scripts Forums » Programming Languages » PHP » Date format


Date format

Reply
  #1 (permalink)  
Old 07-16-03, 02:52 AM
alanrenouf alanrenouf is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Date format

Since upgrading my version of MySql from a very old version to the most current, one of my scripts no longer works.

update Messages set msgdate=date_format('03-03-03','%d %m %y') where id = 552

I just get a blank date all the time in msgdate any ideas ?

Thanks

Alan
Reply With Quote
  #2 (permalink)  
Old 07-16-03, 03:09 PM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
not sure, but maybe you should issue the command in CAPS ?

that's what I always do with (my)SQL commands.
Reply With Quote
  #3 (permalink)  
Old 07-17-03, 04:28 AM
alanrenouf alanrenouf is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Answer

update Messages set msgdate=date_format('03-03-03','%d %m %y') where id = 552

for some reason I had to put the identifier in on the script now we have upgraded:

update Messages set msgdate=date_format('03-03-03','%d-%m-%y') where id = 552
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not getting time even i set date propery to date/time skchakri ASP 3 09-30-03 04:47 PM
Date From Access 2000 Database Kaikki ASP 4 09-25-03 06:04 PM
date reformatting... dsumpter PHP 1 09-23-03 01:05 AM
date format for mysql runya PHP 3 07-28-03 12:56 AM
selection of dup recs by latest date atworx Hot Scripts Forum Questions, Suggestions and Feedback 0 06-24-03 11:05 PM


All times are GMT -5. The time now is 10:31 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.