Skip to content
Loading
+1
  • Bhavesh Vankar
    +1
    its for vb.net i want for vb6.0 vba technology sir...
    +1
  • Vishal Yelve
    +1
    It's for VB 6.0
    +1
  • Bhavesh Vankar
    +1
    actually DateTime is not working in vb6.0 showing all lines red....
    +1
  • Vishal Yelve
    +1
    Don't know why it's not working for you. It should work. 
     
     
     
    Can you check if any namespace is missing  
    +1
  • Bhavesh Vankar
    +1
    below code is working fine, but small issue....
    i want last date of month for retirement date....
     
    suppose i enter my birth date it generate 03/08/2080 this date but i want last date of month.....30 or 31 
     
    1. Dim datetime1 As Date  
    2. Dim datetime2 As Date  
    3. txtdob.Text = Date  
    4. datetime1 = CDate(txtdob.Text)  
    5. datetime2 = DateAdd("yyyy", 58, datetime1)  
    6. txtretirement.Text = Format(datetime2, "dd/MM/yyyy", vbSunday, vbFirstJan1)  
     
    +1