How do you display the week ending date (Sunday) in VB10? When a form loads, I want to display the upcoming Sunday date in a label. In VB6 I used the following code and it worked fine.
Private Sub Form_Load()
' Set Default "Week Ending" Date
lblWkEndDate.Caption = (Date + 7) - (Weekday(Date)) + 1
End Sub
Any and all help would be greatly appreciated. Thank you.