Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code for getting the next "the 1st in month"
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Janriis,

Try with the below way.
Code:
Dim TmpDate1,TmpDate2
   TmpDate1 = DateAdd("m",1, Date)
   TmpDate2 = DateSerial(Year(TmpDate1),Month(TmpDate1),1)
   NewDate=replace(TmpDate2,"/","")
   Msgbox NewDate

Hope it helps you.Smile
Reply


Messages In This Thread
RE: Code for getting the next "the 1st in month" - by sreekanth chilam - 10-21-2009, 08:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)