MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Data conversion

  • To: mathgroup at
  • Subject: [mg101655] Re: Data conversion
  • From: "Hans Michel" <hmichel at>
  • Date: Sun, 12 Jul 2009 06:58:01 -0400 (EDT)
  • References: <h390sb$jvt$>

Get the mathematica code for Calendrica.

There is a function in this package

ConvertDateTo::usage = "ConvertDateTo[date, calendar] converts the given
calendar date to the specified calendar."

ConvertDateTo[date, "Chinese"]?

Make sure the dates are in Mathematica format {YYYY, MM, DD}

I would make certain that all date fields coming in are transsformed to 
Mathematica date format. Use Needs[] or << to load the Calendrica package.

As for the rest Importing and Exporting are in the help file.


"Louise Dekker" <ldekker at> wrote in message 
news:h390sb$jvt$1 at
> Hi,
> I need to convert dates in a dataset for analysis. I need to convert 
> gregorian dates to lunar chinese dates. I know about a program for 
> mathematica, but i've never worked with mathematica. Do you know if this 
> conversion is possible? And when I will use this program, does it allows 
> me to import the dataset, process the dates, and then export it back?
> Thank you very much, I would really appreciate your help.
> I am looking forwards to your reply.
> Kind regards,
> Louise Dekker
> Louise Dekker
> Department of Nutrition
> Harvard School of Public Health
> 677 Huntington Avenue
> Boston, MA 02115 USA
> ldekker at

  • Prev by Date: ColorFunction and question about how to use it
  • Next by Date: Re: Add syntax highlighting to own command
  • Previous by thread: Re: Data conversion
  • Next by thread: question on constructing graphs