dateByTruncatingTime and isVisible methods added

dateByTruncatingTime - instance method for NSDate class
isVisible - for UIViewController