Loading ...
Sorry, an error occurred while loading the content.

23416Re: [Clip] Re: Simple filename and the date for Sunday

Expand Messages
  • hsavage
    Nov 18, 2012
    • 0 Attachment
      > Adrian,
      >
      > I think there are two different conditions:
      >
      > "Any day" might be (1) the current date provided by the system (as
      Axel seems to assume); or (2) any date that is entered manually or
      called by the clip, e.g. by selecting a date in the document.
      >
      > If it's about #2, then, in principle, the reverse date of the next
      Sunday following "any date" could be provided with...
      >
      >
      > ^!Set %Date%=^?{Enter a date (yyyymmdd):}
      > ^!Set %DateNr%=^$GetDateToInt(^%Date%;yyyymmdd)$
      >
      > :Loop
      > ^!IfSame "Sun" "^$GetDateFromInt(^%DateNr%;ddd)$" Match
      > ^!Inc %DateNr%
      > ^!Goto Loop
      >
      > :Match
      > ^!Info Next Sunday: ^$GetDateFromInt(^%DateNr%;yyyymmdd)$
      >
      >
      > Note: The comparison '^!IfSame "Sun"...' depends on what your system
      outputs as short day names (being called with 'ddd').
      >
      > Regards,
      > Flo

      Flo,

      As it is, your clip doesn't work. Transpose the first 2 lines under
      :Loop and it will.

      ···············································
      ¤. JD#...323 - ¤. SL...977 - 12.11.18~23.52.58

      . Newspaper Headline...
      . Drunken Drivers Paid $1000 In '84.

      EUR hrs EUR hsavage EUR pobox EUR com


      [Non-text portions of this message have been removed]
    • Show all 8 messages in this topic