Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I query our IIS logs, I get a value of '30/12/1899' in the date column.

select * from 'C:\IIS 2013 Logs\*.log'

However for some rows, it does have a valid date. (Coincidently rows that have a day number less than or equal to 12) So immediately you can tell it's a date formatting issue.

Our IIS is logging in american date format (mm-dd-yyyy) - I cannot change this. Our server however runs on UK date format (dd-mm-yyyy).

Is there an extra argument I can give log parser so that it grabs the dates correctly from our americanized logs?

share|improve this question
up vote 3 down vote accepted

You can use the -locale:USAcommand-line flag to tell logparser that the dates in the log are in US format.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.