my database table is tableone.
for example......
INSERT INTO tableone(Name,EntryDate,ServiceDate) VALUES('MG MG', '1/1/2012' , ' ' )
INSERT INTO tableone(Name,EntryDate,ServiceDate) VALUES('KO KO', '1/3/2012' , ' ' )
INSERT INTO tableone(Name,EntryDate,ServiceDate) VALUES('John', '1/2/2012' , ' ' )
Now,We inserted data to tableone but ServiceDate Column is empty.This ServiceDate Column is
Now time(CURDATE)-EntryDateColumn values Inserted and Update ServiceDate Column.This ServiceDate Column is ever auto calculation and auto update inserted to ServiceDate Column.Please Help Me...Thank You...
How to Auto Calculated time in SQL Database Select Column
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 10, 2013, 9:57 PM EST
paingsoe thu12 reputationPosted Nov 10, 2013, 11:19 PM EST
DateTime t1 = DateTime.Now;
DateTime t2 = Convert.ToDateTime(dateTimePicker1.Text);
DateTime Calculation = t1 - t2;
UPDATE tableone SET EntryDate = Calculation
Are you understand brother.?