#1 2010-02-26 21:11:37

ducsy
New member
Registered: 2010-02-26
Posts: 2

Date conversion

I've recently installed Talend Studio and am in the process of building my first test project (java) so this may be an obvious question but I can't seem to find the answer myself.

I am reading a julian date which is stored in a mysql table as a long data type and just want to send it to a delimited file output as a date string.

Are there a function to convert a julian date to other types such as gregorian, string of date datatype ?

Thanks.

Offline

#2 2010-02-26 21:37:58

tnewman
Member
Company: Lunexa
Registered: 2008-11-15
Posts: 194
Website

Re: Date conversion

Hi,

Take a look at this :-

http://www.coderanch.com/t/391375/Begin … -long-date

HTH

Last edited by tnewman (2010-02-26 21:43:25)


------------------
Talend Version - TIS 4.1.2
Generated Code - Java
OS - WinXP SP3 / Linux

Offline

#3 2010-02-26 21:46:33

ducsy
New member
Registered: 2010-02-26
Posts: 2

Re: Date conversion

I google too smile

What you found is not what I'm looking for though.

I'm looking to convert a julian date into a human readable ( calendar ) date string.

SD

Offline

#4 2010-02-26 23:04:04

tnewman
Member
Company: Lunexa
Registered: 2008-11-15
Posts: 194
Website

Re: Date conversion

Hi ,

Take a look at :-

http://www.rgagnon.com/javadetails/java-0506.html

There a section about half way down.
Seems its not simple.


------------------
Talend Version - TIS 4.1.2
Generated Code - Java
OS - WinXP SP3 / Linux

Offline

Board footer

Powered by FluxBB