Convert DateTime

S

shapper

Hello,

I am converting a DateTime variable to a string in RFC1123 format (RSS)
using the following code:

Dim a As DateTime
a = DateTime.Now
Dim b As String = a.ToString("R")

It works.

Now I want to make the same but with a Date/Time field from an Access
Database.

The problem is that is when I get the field it comes as string.

I tried to use String.Format(MyField, "R") but I still get the string
date as "9/16/2006".

How can I solve this?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top