hi friends,
Ive a small problem(so to speek,infact its been buggin me for 2 days).I am using java and phpmyadmin(wamp).I just migrated my database from access to mysql and came to know the format of mysql date is of type datetime and the time format is yyyy-mm-dd.Iwant to change it to dd/mm/yyyy.I have checked the mysql documentation but coudnt really get the point.I have decided to change the format in my query(is wat i read in a post) which is advisable.My query goes this way–>
INSERT INTO Internal_Publicity_Details (Branch,Publicity_Nature,Brief_Part1,Brief_Part2,Brief_Part3,Brief_Part4,Specifics_1,Specifics_2,Specifics_3,Specifics_4,Publicity_Media,Publicity_Period,Market_Coverage,Proposed_By,[B]Req_Date[/B],Remarks,Id_No) VALUES
i am entering the date values from my jsp form.Here Req_Date(bold) is my date column.the date which the user will enter is random ie.for example
20/11/2006 or 20/12/2004 like this.please help me regarding this as m completely new to database.I even tried something like this which went horribly wrong –>
INSERT INTO Internal_Publicity_Details (Branch,Publicity_Nature,Brief_Part1,Brief_Part2,Brief_Part3,Brief_Part4,Specifics_1,Specifics_2,Specifics_3,Specifics_4,Publicity_Media,Publicity_Period,Market_Coverage,Proposed_By,Req_Date,Date_Format(`Req_Date`,'%d/%m/%Y'),Remarks,Id_No) VALUES
thanks.
regards,
ajos777