This thread is resolved. Here is a description of the problem and solution.
Problem: How to change the time format in the code based on the language.?
Solution: Just use if, else condition with ICL language select to show different date format. Please refer : https://wpml.org/forums/topic/php-error-ificl_language_codeen/#post-2111534
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.