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
http://www.dreamincode.net/forums/topic/337172-display-date-in-words/

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:
http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.