1

This question already has an answer here:

I'm trying to make an alphabetically ordered bibliography for my report. Currently I have:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin={2cm,2cm}]{geometry}
\usepackage{multicol}
    \setlength{\columnsep}{1cm}\
\usepackage[ backend=biber, style=apa, sorting=ynt ]{biblatex}
    \addbibresource{sample.bib}
    \DeclareNameAlias{default}{last-first}\
    \title{How do we know what the inner structure of planet Earth is like?}
\begin{document}
    \maketitle
    \begin{multicols}{2}
        \section{Introduction and Theoretical brackground} \cite{lehmann}
        \printbibliography
    \end{multicols}
\end{document}

with my .bib file:

@article{lehmann,
  author =   {Lehmann, I.},
  title =    {P'},
  journal =  {Publications du Bureau Central Sismologique International, Série A, Travaux Scientifique, 14},
  year =     1936,
  pages =    {87-115}
}

When I compile, the reference shows:

Lehmann, I. (yearmonthday). P'.Publications du Bu- reau Central Sismologique International, Série A, Travaux Scientifique, 14, 87-115.

How can I make it display just the year (1936), instead of (yearmonthday). I'm using the APA style because I want a comma between the author and the year in the references.

marked as duplicate by moewe, Mensch, user13907, Svend Tveskæg, Henri Menke Apr 7 '16 at 9:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

If you add

\usepackage[american]{babel}
\DeclareLanguageMapping{american}{american-apa}

(or whatever other language you want to declare)
as suggested here it works for me.

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