Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Datatype Conversion

Datatype Conversion

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    welbert
    wrote on last edited by
    #1

    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:->

    A C 2 Replies Last reply
    0
    • W welbert

      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:->

      A Offline
      A Offline
      alien viper
      wrote on last edited by
      #2

      Here is the simple way. :) Dim objDate as Date objDate=New Date(intYear,intMonth,intDay) Messagebox.Show(objDate.DayOfWeek.ToString) !alien!

      1 Reply Last reply
      0
      • W welbert

        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:->

        C Offline
        C Offline
        Chatura Dilan
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups