Bonjour,
Je souhaite calculer automatiquement deux dates, le résultat s'affichera dans un textBox.
en se basant sur ce code 
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 
 | CREATE TABLE dbo.Duration
    (
    startDate datetime2
    ,endDate datetime2
    )
INSERT INTO dbo.Duration(startDate,endDate)
    VALUES('2007-05-06 12:10:09','2007-05-07 12:10:09')
SELECT DATEDIFF(day,startDate,endDate) AS 'Duration'
FROM dbo.Duration; | 
 Dans mon cas je veux mettre Duration dans un textBox.
J'ai essayé de faire 
	
	'" + this.dateTimePicker1.Text + "','" + this.dateTimePicker2.Text + "', Select DATEDIFF(Day, '" + this.dateTimePicker1.Text + "'
 Est ce que vous pouvez m'aider?
						
					
Partager