Last Month Name Setting

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 18
Joined: Thu Apr 09, 2009 8:32 am
Location: Missouri
PostPosted: Tue Jan 05, 2010 7:13 am
I have a field that shows the last month's name, year on the same layout as my monthly calendar.
My calulcation is this:
Let( [ now = (CalFilterDateGlob ) ;
prev = Date ( Month(now) - 1 ; Day(now) ; Year(now) ) ] ;
MonthName ( prev ) & "," & " " & Year (now)
)

Now with the year change, this calculation is not working and i'm not sure how to get it to work with the year changing as you flip through the calendar.
Robin
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Jan 13, 2010 12:27 pm
Replace you last instance of "now" with "prev" like this:

Let( [ now = (Get(Currentdate) ) ;
prev = Date ( Month(now) - 1 ; Day(now) ; Year(now) ) ] ;
MonthName ( prev ) & "," & " " & Year (prev)
)
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 4 guests

(855) SEEDCODE
[email protected]
Follow us: