+ Reply to Thread
Results 1 to 3 of 3

Fomat (Date, yymmdd) function...

  1. #1
    Cathy W
    Guest

    Fomat (Date, yymmdd) function...

    Hi I have the following code that names a file with a prefix and then the
    date. I need the date to be - 1 day. Can anyone help?

    sFilename = "CNLOPB " & Format(Date, "d-mmmm-yy")

    Thanks,
    Cathy

  2. #2
    Niek Otten
    Guest

    Re: Fomat (Date, yymmdd) function...

    Hi Cathy,

    sFilename = "CNLOPB " & Format(Date - 1, "d-mmmm-yy")


    --
    Kind regards,

    Niek Otten

    "Cathy W" <CathyW@discussions.microsoft.com> wrote in message
    news:C1869884-BF65-4EE8-BD54-E49F4F4ED29D@microsoft.com...
    > Hi I have the following code that names a file with a prefix and then the
    > date. I need the date to be - 1 day. Can anyone help?
    >
    > sFilename = "CNLOPB " & Format(Date, "d-mmmm-yy")
    >
    > Thanks,
    > Cathy




  3. #3
    Cathy W
    Guest

    Re: Fomat (Date, yymmdd) function...

    Thanks,

    Cathy

    "Niek Otten" wrote:

    > Hi Cathy,
    >
    > sFilename = "CNLOPB " & Format(Date - 1, "d-mmmm-yy")
    >
    >
    > --
    > Kind regards,
    >
    > Niek Otten
    >
    > "Cathy W" <CathyW@discussions.microsoft.com> wrote in message
    > news:C1869884-BF65-4EE8-BD54-E49F4F4ED29D@microsoft.com...
    > > Hi I have the following code that names a file with a prefix and then the
    > > date. I need the date to be - 1 day. Can anyone help?
    > >
    > > sFilename = "CNLOPB " & Format(Date, "d-mmmm-yy")
    > >
    > > Thanks,
    > > Cathy

    >
    >
    >


+ 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