muXed
New Member
Posts: 15
|
Post by muXed on Mar 7, 2022 9:08:56 GMT -5
Hi Guys,
Is it possible to use the Date$() function to get yesterday's date?
Couldn't find documentation on it; so assuming no?
I imagine i'd have to use Datepup?
|
|
|
Post by Walt Decker on Mar 7, 2022 9:22:38 GMT -5
Yes, it is possible. Just subtract 1 from the day field. Look in Day Planner. There is a DLL in the zip with documentation that will retrieve any number of days back or forward, months back or forward, years back or forward.
|
|
|
Post by tsh73 on Mar 7, 2022 9:44:22 GMT -5
print "Today is ";date$() print "Today is ";date$("mm/dd/yyyy") print "Today as nay number ";date$("days") print "so yesterday is today -1, that is ";date$("days")-1 print "Formatted yesterday ";date$(date$("days")-1)
result is
Today is Mar 07, 2022 Today is 03/07/2022 Today as nay number 44260 so yesterday is today -1, that is 44259 Formatted yesterday 03/06/2022
|
|
muXed
New Member
Posts: 15
|
Post by muXed on Mar 7, 2022 9:49:00 GMT -5
Perfect. Thank you both.
Was trying to avoid using a dll.
Although the day planner looks very interesting!
|
|