Dim str1 as new SqlCommand("Seelct datetimeformat from test1 where username='a'",con) con.open() Dim result as string=str1.executescalar() datetimepicker1.format=datetimepickerformat.Custom datetimepicker1.CustomFormat=result
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)