Results 1 to 5 of 5

Thread: Complete date fiasco

  1. #1
    Jethro
    Guest

    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....

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    european way rules

  3. #3
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    What about the Format$ function? format it to the proper way. I haven't tried it yet, is it still in VB.NET?

  4. #4
    hellswraith
    Guest
    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")

  5. #5
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    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
  •  



Click Here to Expand Forum to Full Width