Question Locked

Ms access date retrevial problem

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am doing a project in c#.net windows application with ms access as the database.When i am retreving the date from the database and showing in a label it is showing along with time .I want to display only the date .please help me.

label29.Text = dr[7].ToString();

2 replies

by tony hopkinson

for DateTime types.

One of them takes a format, e.g. somethinmg like .ToString("dd/mm/yyyy").

You can useculture type things like shortdate format in regional settings as well.

This discussion is closed to new replies.