Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / August 2004



Tip: Looking for answers? Try searching our database.

VB Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hilton Lange - 31 Aug 2004 09:46 GMT
(In reference to 2002 thread "VB Date")

Marco has told me that he finally found a solution to this, but just
spitefully neglected to share it with the people who questioned his
abilities...

If you're looking for his resolution, I suggest you repeatedly email
him to ask him for it...  :-)

Cheers
Hilton
Tony Proctor - 31 Aug 2004 12:54 GMT
I've only just at this previous thread
(http://www.google.ie/groups?safe=images&ie=UTF-8&as_umsgid=10d5001c26af9%24
66cb84d0%2439ef2ecf@TKMSFTNGXA08&lr=&hl=en)

However, it seems that is doesn't need any solution from MS to rectify the
problem. IMHO, it's the fault of Marco's program in mixing 2 different date
locales (i.e. the implicit system/user one) and the explicit picture string.
Once the code is changed appropriately then it works OK.

To illustrate the problem a little more, I have a default date format of
dd/mm/yyyy on my machine (i.e. UK format). If my explicit picture string is
mm/dd/yyyy (i.e US format), then I get exactly the same symptoms as Marco.

Private Sub Command1_Click()
Text1.Text = Format(Text1.Text, "mm/dd/yyyy")
End Sub

Basically, Text1 is being used to display an explicit US-format date, but
the call to Format() assumes it to be a UK-format date. It can't be both!

               Tony Proctor

> (In reference to 2002 thread "VB Date")
>
[quoted text clipped - 7 lines]
> Cheers
> Hilton
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.