Get Last Modified Date of A Raster Image
Contents
[
Hide
]
This article demonstrates the usage of Aspose.Imaging for Java to get last modified date of an image. Aspose.Imaging APIs have exposed efficient & easy to use methods to achieve this goal.
Get Last Modified Date
Aspose.Imaging for Java has exposed the getModifyDate method of Image class to get the last modified date of an image from its metadata. getModifyDate method needs a Boolean value to get the modified date accordingly.
The steps to get last modified date are as simple as below:
- Load an image using the factory method Load exposed by Image class.
- Convert the image into RasterImage.
- Call the RasterImage.getModifyDate method by passing a Boolean true or false value.
The following code example demonstrates how to get last modified date of the image.