The Artima Developer Community
Sponsored Link

Java Answers Forum
date in xml, java & mysql(help me pelase)

1 reply on 1 page. Most recent reply: Oct 6, 2004 1:37 AM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
maryam mousavikhah

Posts: 1
Nickname: maryammm
Registered: Oct, 2004

date in xml, java & mysql(help me pelase) Posted: Oct 4, 2004 11:36 AM
Reply to this message Reply
Advertisement
hello friends
i have a problem.may you help me?
i want to work with date in 3 environment:
java,mysql and xml but you know date in xml is
different from date in java and mysql.do you have any code
wich can change xml date to java date? if you have i'll be
very grateful if you give me tha,or if you guide me what should i
do.
thanks alot for reading my mail.
sincerely
*maryam*


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: date in xml, java & mysql(help me pelase) Posted: Oct 6, 2004 1:37 AM
Reply to this message Reply
First of all this is a forum and you made a post and not a mail. Looks like you have been sending mails to some mailing list and copied and pasted to this forum too :-) Anyway.

When you say the dates are different for XML, MySql and Java I assume you are talking about the difference in the format.

If thats the case in Java you can change the format of a date from one to another using SimpleDateFormat format class.

http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

also for code example

http://www.javaalmanac.com/egs/java.text/FormatDate.html

Flat View: This topic has 1 reply on 1 page
Topic: JSF Application in Jakarta Pluto Previous Topic   Next Topic Topic: Using Recursion

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use