Datatype Conversion
-
Hello again.. Need help if there is another way on how to display the day of the week using a variable that has a datatype of intger... this is how i get the integer value... intmonth = cdDateTime.picker.value.year intday = cdDateTimePicker.value.year intYear = cdDateTimePicker.Value.Year and i have to use the integer value to get the day of the week... cddate = Cdate( cstr(intmonth) + cstr(intday) + cstr(intyear).DayofWeek).ToString this produce an error....nid healp ... thank you:->
-
Hello again.. Need help if there is another way on how to display the day of the week using a variable that has a datatype of intger... this is how i get the integer value... intmonth = cdDateTime.picker.value.year intday = cdDateTimePicker.value.year intYear = cdDateTimePicker.Value.Year and i have to use the integer value to get the day of the week... cddate = Cdate( cstr(intmonth) + cstr(intday) + cstr(intyear).DayofWeek).ToString this produce an error....nid healp ... thank you:->
Here is the simple way. :) Dim objDate as Date objDate=New Date(intYear,intMonth,intDay) Messagebox.Show(objDate.DayOfWeek.ToString) !alien!
-
Hello again.. Need help if there is another way on how to display the day of the week using a variable that has a datatype of intger... this is how i get the integer value... intmonth = cdDateTime.picker.value.year intday = cdDateTimePicker.value.year intYear = cdDateTimePicker.Value.Year and i have to use the integer value to get the day of the week... cddate = Cdate( cstr(intmonth) + cstr(intday) + cstr(intyear).DayofWeek).ToString this produce an error....nid healp ... thank you:->
welbert wrote:
how to display the day of the week using a variable that has a datatype of intger
Dim DayOfTheWeek As Integer DayOfTheWeek = Now.DayOfWeek Or you want to get it from the DateTimePicker Dim DayOfTheWeek As Integer DayOfTheWeek = cdDateTimePicker.Value.DayOfWeek chatura