Can anybody tell me How to Get the Last date of the month....
Ex : input 1 feb 1993
I need output As 28 feb 1993 How to achive this.
Late date of Month..
Moderators: chulett, rschirm, roy
Late date of Month..
Thanks
M A hasan
M A hasan
Try
Code: Select all
DateFromDaysSince( -1 ,StringToDate('1993/02/01','%yyyy/%mm/%dd'))
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 132
- Joined: Wed Mar 01, 2006 11:12 pm
- Location: Pune
Mhasan - I didn't give you the complete answer on purpose. The DateFromDaysSince() function using -1 will give you date one day prior to the input. So all you need to do is change your date to the first day of the next month (perhaps using string-based functions?) and then apply DateFromDaysSince(). If this is too much work, try using the forum's search functionality and you will discover that this is not the first time the question has been asked and answered.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>