| Author: vipul 05 Sep 2008 | Member Level: Diamond | Rating: Points: 3 |
Hi, for that you take today date in this way System.DateTime.Now.ToShortDateString() it return date string so directly store that in to the database no need to convert into the string .
vipul, http://dongavipul.blogspot.com
|
| Author: Subodh kumar Prajapati 05 Sep 2008 | Member Level: Gold | Rating: Points: 3 |
hi, you can use this. Suppose you are useing datareader then :
label1.Text=datareader1["date"].toString();
|
| Author: Athira Appukuttan 05 Sep 2008 | Member Level: Diamond | Rating: Points: 3 |
Labe1.text=datetime.now.tostring("dd/MM/yyyy");
string Date= label.text;
store date in DB use date variable
|