---
title: "How to get last modified date using ALAsset class in iOS"  
description: "How to get last modified date using ALAsset class in iOS"  
author: "Mark Devid"  
published: 2015-12-20  
updated: 2015-12-20  
canonical: https://www.mindstick.com/forum/33759/how-to-get-last-modified-date-using-alasset-class-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to get last modified date using ALAsset class in iOS

I want to get the last modified [date](https://yourviews.mindstick.com/story/3869/propose-day-2024-exciting-date-ideas-for-you-and-your-partner) from ALAsset type [video](https://www.mindstick.com/articles/290133/6-necessary-preparations-you-need-before-editing-a-video)?\
I tried with:\
NSDate *date = [dateFormatter dateFromString:[[[[asset defaultRepresentation] [metadata](https://www.mindstick.com/articles/334241/the-power-of-metadata-how-it-shapes-google-search-results)] objectForKey:@"{TIFF}"] objectForKey:@"[DateTime](https://www.mindstick.com/forum/12949/how-to-validate-if-a-datetime-field-is-not-null-empty)"]];\
but metadata is coming empty for a video.\
Please help me.

## Replies

### Reply by Tarun Kumar

I have searched there is no such property for finding last updated date how ever there is a property for Created date.\
For getting created date use code like this:

```
ALAsset* assetObj;NSDate* dateObj = [assetObj valueForProperty:ALAssetPropertyDate];
```


---

Original Source: https://www.mindstick.com/forum/33759/how-to-get-last-modified-date-using-alasset-class-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
