If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Split datefield into Year, Month, Day and vica versa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-04, 09:13
widely widely is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Question Split datefield into Year, Month, Day and vica versa

Can anybody help me?

I use PHP-admin to make a MySQL script for the following:

- I want to split a datefield into separate fields (Year, Month, Day) in the same table.
- and what about the other way around?

My structure is:

datum, date, 0000-00-00 -> must be split up in:
yid, int(4) -> Year
mid, int(2) -> Month
did, int(2) -> Day

in the same table.

I will be very pleased if somebody could help me sort this out.

Best regards!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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