|
-
Jul 16th, 2002, 04:57 PM
#1
Complete date fiasco
Ok to lighten the code up, getting an error in this sort of line
Code:
objProduct.DatePurchased = #30/1/01#
Works if date is in US format #1/30/01#, the PC is set to European date format. Do l have to set something in vs.net as well to use non-US date formats
Thanks in advance....
-
Jul 16th, 2002, 06:01 PM
#2
yay gay
european way rules
-
Jul 16th, 2002, 07:38 PM
#3
Lively Member
What about the Format$ function? format it to the proper way. I haven't tried it yet, is it still in VB.NET?
-
Jul 16th, 2002, 09:41 PM
#4
Maybe this will get you started on where to go. I use this in a project to save the date and time with the file name.
myString = DateTime.Now.ToString("yymmddhhmmss")
-
Jul 17th, 2002, 01:59 AM
#5
How about:
objProduct.DatePurchased = New Date(1, 1, 30)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|