if you use sql, you can do it like this:
select field1, convert(nvarchar(10), field2, 101)
from the table where // independently,
Let me explain what it is:
-field2 is the date containing the field. -nvarchar (10) is the type you will be updating. This does not really matter, because it is the type that you get (conversion result). Similarly, you do not need a data type. This is only for displaying data. The number 10 is the length of the string you get.
-field2:
field you want to convert (date with hour)
101: it's a style. This is reported by field2, which should only print month / day / year.
There are many styles, you must google them!
I hope this works.
source share