I'm not sure where to begin on this. 1. Are you talking about a .net application?2. What is your table structure in sql3. What type of datatype are you looking to use?I am going to assume the following1. It's a VB.NET App2. Your table is TBL1(TBL1ID int ,TBL1Date datetime)3. Your TBl1Date is a DateTime datatype.4. Your tb that holds the date is TBDATE, the Time is TBTIME, AM/PM TBAMPMdim x as string = me.tbl1date.text & " " & me.tbtime.text & " " me.tbampm.text' Then use the value of x to update your table column.
If your saying you have two columns in a table that need this then the process again would be to first figure out what datatype the columns are. If varchar/nvarchar and they are going to a datetime column.I am assuming Your table is TBL1(TBL1ID int,TBL1Date datetime,coldate varchar(20),coltime varchar(20),colAMPM varchar(20))Update TBl1set tb1Date = convert(Datetime, COLDATE + ' ' + ColTIME + ' ' + COLAMPM,102)
Next time for a exact answer please be far more specific with your questions so people don't need to guess what you are asking. This will allow your question to get answered faster and properly.