|
| Re: Date and Time Format |
 |
Sun, 23 Sep 2007 20:48:47 +000 |
hii
musn't forget :using System.Text;(it must add)
///////////////////DateTime tarih;
tarih = DateTime.Now;string a = tarih.ToString();
StringBuilder tarih2 = newStringBuilder();
for (int i = 0; i < 19; i++)//for date format edit.
{
tarih2.Append(a[i]);
}
note:ı used this code with sql database.date type is nvarchar.I didn't a
problem.
you think"why i=19"?Because I must see minute,second,milisecond.And I
didn't problem in sql database and .net...
|
| Post Reply
|
|
|
|
|
|
|
|
|
|