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

yesterday clip

Expand Messages
  • kitPATh
    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)$
    Message 1 of 3 , Nov 8, 2004
    • 0 Attachment
      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)$
    • hsavage
      ... the zero when less than 10? pat(riv) ... Pat, Try this, inserts a leading zero on single digit days. hrs H= yesterday
      Message 2 of 3 , 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)$
      • kitpath
        ... with ... Clever again. Thanks hrs! -pat
        Message 3 of 3 , Nov 8, 2004
        • 0 Attachment
          --- In ntb-clips@yahoogroups.com, hsavage <hsavage@p...> wrote:
          > 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)$

          Clever again. Thanks hrs!

          -pat
        Your message has been successfully submitted and would be delivered to recipients shortly.