Hocam bosuna uzun uzun kod yazilmis. Bunun yerine islem 2,3 satirda halledilebilir. Difference between two dates diye arayabilirsiniz.
İyi calismalar