LutfullahUygur Posted April 28, 2015 Share Posted April 28, 2015 Arkadaşlar uzun zamandır Kod yazmadığım için herşeyi unutmuşum , İki Tarih arasında ki Gün saysını bulup ekrana yazacak program lazım şimdiden teşekkür ederim. 23 Nisan 2015 - Günümüz arası olacak tarih. Ben bu kadar yazabildim. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 28, 2015 Share Posted April 28, 2015 DateTime baslangic = new DateTime(2015, 03, 23); // başlangıç DateTime bitis = DateTime.Now; // bitiş (şu an ki tarih) double fark = (bitis - baslangic).TotalDays; // aradaki farkı bul string strFark = Math.Round(fark, 0).ToString(); // stringe çevir MessageBox.Show(strFark); // yazdır Quote Link to comment Share on other sites More sharing options...
LutfullahUygur Posted April 28, 2015 Author Share Posted April 28, 2015 Çok teşekkür ederim abi , iki seferdir sen yardım ediyorsun. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 28, 2015 Share Posted April 28, 2015 eyvallah ne demek, bu sayede bizde öğreniyoruz işte. Burayı açmamızın amacı buydu zaten. Bende DateTime'in "DateTime(2015, 03, 23)" şeklinde yazılabildiğini bilmiyordum mesela, öğrenmiş oldum. Quote Link to comment Share on other sites More sharing options...
mertugruul Posted April 28, 2015 Share Posted April 28, 2015 TimeSpan ile ilgili örnek yapmıştım daha önceden. İşine yarar belki öğrenme açısında inceleyebilirsin. https://yadi.sk/d/pVm3zMSkgK4gG Quote Link to comment Share on other sites More sharing options...
ciksinan Posted April 29, 2015 Share Posted April 29, 2015 güzel paylaşım bana da php ile olanı lazım Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 29, 2015 Share Posted April 29, 2015 Yazılım bölümüne konu açarsanız yardımcı oluruz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.