Du kan bruge DateTime.Today.ToString("yyyy-MM-dd HH:mm:ss")
//Uanset format...
eller Brug direct sql i stedet ved at bruge CONVERT-metoden. Syntaks er
CONVERT(VARCHAR,DateTime.Today.Day + "/" + DateTime.Today.Month + "/" + DateTime.Today.Year,103)
CONVERT(VARCHAR, DateTime.Today.Hour + ":" + DateTime.Today.Minute + ":00" ,108)
whould giver formatet tt:mm:ss
fuld reference fra følgende w3-link:http://www.w3schools.com/sql/func_convert .asp