File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with date and time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with date and time?" Watch "Problem with date and time?" New topic

Problem with date and time?

ramesh vadugu

Joined: Apr 21, 2007
Posts: 6
i have a requirement to combine the date field and time field which are entered by user.

example userdate=10/07/2007 and time=10:03 am

here i have to combine both and apply the getTime() on that combination

is it possible if so let me know please.

Best Regards
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63052

"ramesh", please check your email for an important message from me.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
new Date(year, month, day [, hour, minute, second, millisecond]);

It is sorta covered in the JavaRanch Style Guide.
subject: Problem with date and time?
jQuery in Action, 3rd edition