Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date formatter #1249

Closed
melTr opened this issue Apr 19, 2016 · 5 comments
Closed

Date formatter #1249

melTr opened this issue Apr 19, 2016 · 5 comments

Comments

@melTr
Copy link
Contributor

melTr commented Apr 19, 2016

Using more and more biblatex format, I would like to have the possibility to have a date formatter.
Could be similar to already existing one : \format[CurrentDate]{yyyy.MM.dd}

@tobiasdiez
Copy link
Member

So if I understand you correctly, you want a formatter which formats the date field to a specific form (say yyyy/mm/dd)?

@melTr
Copy link
Contributor Author

melTr commented Apr 20, 2016

Yes exactly!
For now date field is output as yyyy-MM-dd but I would like the possibility to use at MM/yyyy for my document's needs. Thanks.

@Siedlerchr
Copy link
Member

@melTr Biblatex explicitly needs the Date format in ISO, from the BibLaTeX reference manual:
http://tug.ctan.org/macros/latex/exptl/biblatex/doc/biblatex.pdf
2.3.8 Date Specifications

The date fields date,origdate,eventdate, and urldate require a date
specification in yyyy-mm-dd format. Date ranges are given as yyyy-mm-dd/yyyy-mm-dd.[...]

The formatted display of the date in the citation/bibliography is depending on the biblatex style and language you use and of couse if you provide the arguments:
See 3.1.1 Load-time Options for an example

@oscargus
Copy link
Contributor

@Siedlerchr : @melTr is talking about a LayoutFormatter to export the .bib-file to some other suitable format (or to use with OpenOffice/LibreOffice).

@Siedlerchr
Copy link
Member

Ah now I get it :) It was a bit confusing for me.

oscargus added a commit to oscargus/jabref that referenced this issue Jul 15, 2016
oscargus added a commit that referenced this issue Jul 15, 2016
* Added layout DateFormatter, see #1249

* Removed comment (sorry about that)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants