How do i get the numerical Day component from a Date variable. ie I have a variable declared, and assigned a value as below:
===========================================================
Dim dateofbirth as Date
Dim users As New ASPNetPortal.UsersDB()
Dim dr_id As SqlDataReader = users.GetSingleUser(UserEmail)
dr_id.Read()
dateofbirth = CDate(dr_id("DOB")
dr_id.Close()
dob01.SelectedIndex = ?????????????????
===========================================================
I know need to use the Day value to set the SelectedIndex of a DropDownList, and then do the same for the Month and Year.
Thanks for any help,
cheers,
si
===========================================================
Dim dateofbirth as Date
Dim users As New ASPNetPortal.UsersDB()
Dim dr_id As SqlDataReader = users.GetSingleUser(UserEmail)
dr_id.Read()
dateofbirth = CDate(dr_id("DOB")
dr_id.Close()
dob01.SelectedIndex = ?????????????????
===========================================================
I know need to use the Day value to set the SelectedIndex of a DropDownList, and then do the same for the Month and Year.
Thanks for any help,
cheers,
si