DateTime format
-
Hello I need to view the data in the datagridview from the table through an sql statment but i don't want the date will be like: "1983-01-01 00:00:00" i want just show:"1983-01-01" or show:"01-01-1983" Thanks in advance
Assaf
-
Hello I need to view the data in the datagridview from the table through an sql statment but i don't want the date will be like: "1983-01-01 00:00:00" i want just show:"1983-01-01" or show:"01-01-1983" Thanks in advance
Assaf
there are two ways to achieve it either from sql server by using Convert(varchar(30),getdate(),101) it will convert your date to desired format. other one is use Format(XXX, "dd MMMM, yyyy") function in .NET ...
Arun Singh Noida.
-
there are two ways to achieve it either from sql server by using Convert(varchar(30),getdate(),101) it will convert your date to desired format. other one is use Format(XXX, "dd MMMM, yyyy") function in .NET ...
Arun Singh Noida.