Working with the 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
 
S

Steve

use:

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


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top