## yesterday clip

Expand Messages
• 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
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)\$
• ... 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
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"
• ... with ... Clever again. Thanks hrs! -pat
Message 3 of 3 , Nov 8, 2004
--- 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"