The Artima Developer Community
Sponsored Link

Java Answers Forum
Date Formatting Question

1 reply on 1 page. Most recent reply: Mar 18, 2004 11:02 PM by Viswanatha Basavalingappa

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
Kevin

Posts: 25
Nickname: doublek321
Registered: Jan, 2004

Date Formatting Question Posted: Mar 18, 2004 2:10 PM
Reply to this message Reply
Advertisement
I want to get a date and a time from the user but in 2 separate fields on the JSP page. How would I go about combining the 2 fields into a single datetime field? I've checked Date and DateFormat but I haven't figured it out yet.


Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: Date Formatting Question Posted: Mar 18, 2004 11:02 PM
Reply to this message Reply
HI,

You can use the following Date class constructer to do this.
1. Date(int year, int month, int date, int hrs, int min, int sec) 
2.Date(int year, int month, int date, int hrs, int min)



hope this helps you.
Viswa
--------

Flat View: This topic has 1 reply on 1 page
Topic: procedure Previous Topic   Next Topic Topic: adding elements od an array

Sponsored Links



Google
  Web Artima.com   

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