+ Reply to Thread
Results 1 to 3 of 3

date format in code

Hybrid View

  1. #1
    TUNGANA KURMA RAJU
    Guest

    date format in code

    if e.offset(1,0)=arrVal(0) then
    msg( arrVal(0) & " exists already")
    In the above code arrVal(0) is a date I am getting it in message box as
    12/5/2005.
    I want this as 05-DEC-2005.What additional lines I ahve to insert to get the
    result what I need?.

  2. #2
    Niek Otten
    Guest

    Re: date format in code

    msg( Format(arrVal(0),"dd-mmm-yyyy") & " exists already")

    --
    Kind regards,

    Niek Otten

    "TUNGANA KURMA RAJU" <TUNGANAKURMARAJU@discussions.microsoft.com> wrote in
    message news:A7ADF743-3B6A-4270-98D1-DB04C24DF1C7@microsoft.com...
    > if e.offset(1,0)=arrVal(0) then
    > msg( arrVal(0) & " exists already")
    > In the above code arrVal(0) is a date I am getting it in message box as
    > 12/5/2005.
    > I want this as 05-DEC-2005.What additional lines I ahve to insert to get
    > the
    > result what I need?.




  3. #3
    TUNGANA KURMA RAJU
    Guest

    Re: date format in code

    Thanks ,Its working.

    "Niek Otten" wrote:

    > msg( Format(arrVal(0),"dd-mmm-yyyy") & " exists already")
    >
    > --
    > Kind regards,
    >
    > Niek Otten
    >
    > "TUNGANA KURMA RAJU" <TUNGANAKURMARAJU@discussions.microsoft.com> wrote in
    > message news:A7ADF743-3B6A-4270-98D1-DB04C24DF1C7@microsoft.com...
    > > if e.offset(1,0)=arrVal(0) then
    > > msg( arrVal(0) & " exists already")
    > > In the above code arrVal(0) is a date I am getting it in message box as
    > > 12/5/2005.
    > > I want this as 05-DEC-2005.What additional lines I ahve to insert to get
    > > the
    > > result what I need?.

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1