Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hm... this is strange. If I insert

Date.Now

into SQL database 'datestamp field', and then try to retrieve it with reader like

Lebel1.text = Format(myReader("field1"), "dd.mm.yy")

I dont get correct value.

 

Days and years are ok, but months are complete wrong. What is the problem?

(mm can allso be bigger than 12 like 59 or something).

 

I'm confused....

  • *Experts*
Posted

Check the help on ToString for dates, mm is miliseconds I think. You want MM instead - it's case sensitive.

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...