app/src/main/java/io/github/ilya_lebedev/popularmovies/utilities/TmdbDateUtils.java
/**
     * Convert movie release date from TMDb API format to milliseconds
     *
     * @param releaseDateString String representing movie release date
     *
     * @return The number of milliseconds for movie release date
     *
     * @throws ParseException If date string cannot be converted
     */
Convert movie release date from TMDb API format to milliseconds
@param releaseDateString String representing movie release date

@return The number of milliseconds for movie release date

@throws ParseException If date string cannot be converted
Convert movie release date from TMDb API format to milliseconds @param releaseDateString String representing movie release date @return The number of milliseconds for movie release date @throws ParseException If date string cannot be converted
public static long convertReleaseDateStringToMillis(String releaseDateString) throws ParseException {
        SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_PATTERN);
        Date releaseDate = dateFormat.parse(releaseDateString);
        return releaseDate.getTime();
    }
public static long convertReleaseDateStringToMillis ( String releaseDateString ) throws ParseException { SimpleDateFormat dateFormat = new SimpleDateFormat ( DATE_PATTERN ) ; Date releaseDate = dateFormat . parse ( releaseDateString ) ; return releaseDate . getTime ( ) ; }
Convert movie release date from TMDb API format to milliseconds
 @param releaseDateString String representing movie release date
Convert movie release date from TMDb API format to milliseconds @param releaseDateString String representing movie release date