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

12685Re: [Clip] yesterday clip

Expand Messages
  • hsavage
    Nov 8, 2004
    • 0 Attachment
      kitPATh wrote:
      > Is there another way to insert yesterday's date? Maybe padded with
      the zero when less than 10? pat(riv)
      >
      >
      > H="yesterday"
      > yesterday
      > ^!set %yd%=^$getdate(dd)$
      > ^[yyy-mm-^]^$Calc(^%yd%-1)$

      Pat,

      Try this, inserts a leading zero on single digit days.

      hrs


      H="yesterday"
      ^[yyyy-mm-^]^$StrCopyRight("0^$Calc(^[dd^]-1)$";2)$
    • Show all 3 messages in this topic