Results 1 to 2 of 2

Thread: year format

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Secunderabad, AP, INDIA
    Posts
    20

    Post

    i am using VB with oracle database, suppose a record in oracle is 21-jan-99, this record becoming 21-jan-2099 while i am displaying in form since i want the format as MMM-DD-YYYY, HH:MI:SS, so please help me how can i get rid off this problem toget my output as 21-jan-1999...pl help me.asap

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You can format the record like this:

    Text1.Text = Format(rs("FieldName"), "MMM-DD-YYYY, HH:MI:SS")

    Where rs is a recordset object.

    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

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