+ Reply to Thread
Results 1 to 4 of 4

Date format in string

  1. #1
    Adam Thwaites
    Guest

    Date format in string

    I have this code:
    ="Week Beginning " & Date-WEEKDAY(Date,3)
    which I can't stop coming out as:
    Week Beginning 38719

    I tried:
    ="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
    "yyyy")
    but that just comes up as #NAME

    Any suggestions?
    --
    Adam Thwaites
    Access Database Designer
    adam.*spamless*[email protected]
    Manchester, UK

  2. #2
    Bob Phillips
    Guest

    Re: Date format in string

    ="Week Beginning " & text(TODAY()-WEEKDAY(TODAY(),3),"dd mmm yyyy")


    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "Adam Thwaites" <[email protected]> wrote in message
    news:[email protected]...
    > I have this code:
    > ="Week Beginning " & Date-WEEKDAY(Date,3)
    > which I can't stop coming out as:
    > Week Beginning 38719
    >
    > I tried:
    > ="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/"

    &
    > "yyyy")
    > but that just comes up as #NAME
    >
    > Any suggestions?
    > --
    > Adam Thwaites
    > Access Database Designer
    > adam.*spamless*[email protected]
    > Manchester, UK




  3. #3
    Gary''s Student
    Guest

    RE: Date format in string

    Consider using TEXT():


    ="Week Beginning: " & TEXT(TODAY()+4,"dd/mm/yyy")
    will display as:
    Week Beginning: 14/05/2006

    --
    Gary''s Student


    "Adam Thwaites" wrote:

    > I have this code:
    > ="Week Beginning " & Date-WEEKDAY(Date,3)
    > which I can't stop coming out as:
    > Week Beginning 38719
    >
    > I tried:
    > ="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
    > "yyyy")
    > but that just comes up as #NAME
    >
    > Any suggestions?
    > --
    > Adam Thwaites
    > Access Database Designer
    > adam.*spamless*[email protected]
    > Manchester, UK


  4. #4
    JE McGimpsey
    Guest

    Re: Date format in string

    One way:

    ="Week Beginning" & TEXT(Date-WEEKDAY(Date, 3), "dd/mm/yyyy")


    In article <[email protected]>,
    Adam Thwaites <[email protected]> wrote:

    > I have this code:
    > ="Week Beginning " & Date-WEEKDAY(Date,3)
    > which I can't stop coming out as:
    > Week Beginning 38719
    >
    > I tried:
    > ="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
    > "yyyy")
    > but that just comes up as #NAME
    >
    > Any suggestions?


+ 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