İçeriğe atla
Kasım 29, 2011 / sukruerdem

Saat formatını integer’a çevirme.

TimeSpan ts1 = TimeSpan.Parse(“0:”+ dTableZeet.Rows[1]["time"].ToString());
TimeSpan ts2 = TimeSpan.Parse(“0:” + dTableZeet.Rows[5]["time"].ToString());
TimeSpan res = ts2 – ts1;
int q = Convert.ToInt32(res.Ticks.ToString().Replace(“0″,”"));
int x = q / 6;

Yorum yapın

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Değiştir )

Twitter picture

You are commenting using your Twitter account. Log Out / Değiştir )

Facebook photo

You are commenting using your Facebook account. Log Out / Değiştir )

Connecting to %s

Follow

Get every new post delivered to your Inbox.