10-21-2009, 08:21 PM
Hi Janriis,
Try with the below way.
Hope it helps you.
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.