G
Guest
Hi,
I have a DB table in which has 2 attributes:
1. RegistrationDate datetime
2. IsApproved bit //Approved = 0; Not approve = 1
Now, I need to get and set their values in cs files.
public XXX RegistrationDate / IsApproved
{
get
{
return this.Date; / this.IsApproved;
}
set
{
this.Date = value; / this.IsApproved;
}
}
I want to know what are the data types of datetime and bit in C#?
Do I use string and int for them?
Also, for the datetime, how can I get the system date and time? and what are their formats? DD/MM/YY SS/MM/HH ?
Thanks for help
Tom
I have a DB table in which has 2 attributes:
1. RegistrationDate datetime
2. IsApproved bit //Approved = 0; Not approve = 1
Now, I need to get and set their values in cs files.
public XXX RegistrationDate / IsApproved
{
get
{
return this.Date; / this.IsApproved;
}
set
{
this.Date = value; / this.IsApproved;
}
}
I want to know what are the data types of datetime and bit in C#?
Do I use string and int for them?
Also, for the datetime, how can I get the system date and time? and what are their formats? DD/MM/YY SS/MM/HH ?
Thanks for help
Tom