Dear list,

I have the following sample:

    \usemodule[scancsv]

    \unexpanded\def\lineaction{
    \Name\ arrived on \Date\\
    }

    \setheader
    \setsep{;}
    \setfiletoscan{mail.csv}

    \starttext
        \filelineaction
    \stoptext

that reads data from mail.csv:

    Name;Date
    ME;11/10/14
    You;05/02/14
    He;15/02/2014
    She;03/03/12
    It;03/03/14

My question is simple (and not related to CSV data import): how can I
define a command (ConTeXt or Lua) that changes date format from DD/MM/YY
to DD/MM/YYYY when required?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to