From: Dan Nelson Date: March 18 2005 7:31pm Subject: Re: Converting Integer values to date type List-Archive: http://lists.mysql.com/mysql/181491 Message-Id: <20050318193114.GE18079@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In the last episode (Mar 18), Mahmoud Badreddine said: > Hello, > I have a table with separate integer values for the day, month and year. > I would like to group them all under one field of type date. > I tried a few commands but I haven't captured the right syntax yet. > > so if the field names are dayVal,monthVal and YearVal in talbeDummy > > I am doing the following > select str_to_date(DayVal.MonthVal.YearVal,'%d.%m.%Y') from tableDummy; CONCAT(DayVal, ".", MonthVal, ".", YearVal) -- Dan Nelson dnelson@stripped