Hi, im currently developing a picture viewer. i would like to capture the last used time of each picture into MS access database. in my picture viewer im able to choose he pictures one by one after selection, when i click a button and the slideshow will play.

i need some sample codings is capturing the date and time and stores them into database.
anyone please advice. thanks.

There are a number of different time formats you can use- depends what you want. Off Dream in Code

Dim today = DateTime.Now
'Display time in different labels and different formats

Label1.Text = String.Format("{0:dddd, MMMM d}", today)

Label2.Text = String.Format("{0:hh:mm tt}", today)

Also check this out for different time formats: