Get Last Date in Month In PowerBuilder

Get Last Date in Month In PowerBuilder

Good Luck!

Was this article helpful?
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Pat Konig
Pat Konig
1 year ago

Here’s another way to do it :

Date ldt_LastDay

ldt_LastDay = Date(Year(adt_Input), Month(adt_Input), 25)
ldt_LastDay = RelativeDate(ldt_LastDay, 10)

ldt_LastDay = Date(Year(ldt_LastDay), Month(ldt_LastDay), 1)
ldt_LastDay = RelativeDate(ldt_LastDay, -1)

Return ldt_LastDay

2
0
Would love your thoughts, please comment.x
()
x