Avoiding confusion between mildly silly little-endian dates and utterly ridiculous middle-endian dates is easy. Use the ISO 8601 standard - YYYY-MM-DD.
Comment on Re^2: The function localtime(time) returns wrong month . How to overcome this problem ??