Working with the date...

  • Thread starter Thread starter RAB
  • Start date Start date
R

RAB

Hello,

Using asp.net 1.1 and VB, I would like to get the date and then fill 3
variables with data pertaining to the date.

dim day as integer
dim month as integer
dim year as integer
Dim value As DateTime

value = DateTime.Now

How do I fill the integers 'day', 'month' and 'year' with the
appropriate data from 'value'?

Thanks in advance,
RABMissouri2007
 
use:

month = value.Month
day = value.Day
year = value.Year


Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
Back
Top