By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,996 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,996 IT Pros & Developers. It's quick & easy.

how to get the input in the date format...

P: 37
Hi..to all........

In my program.. i hav to get the input from the user in the date format.. ..
how can i do this...

plz help me.........


regards
pradeep
Sep 17 '07 #1
Share this Question
Share on Google+
3 Replies


madhoriya22
100+
P: 252
Hi..to all........

In my program.. i hav to get the input from the user in the date format.. ..
how can i do this...

plz help me.........


regards
pradeep
Hi,
Can you make yourself more clear ?
Sep 17 '07 #2

10K+
P: 13,264
Hi..to all........

In my program.. i hav to get the input from the user in the date format.. ..
how can i do this...

plz help me.........


regards
pradeep
You can use the Scanner class to get the input as a string. Then you can use the DateFormat's parse method to convert it to a date
Sep 17 '07 #3

P: 37
You can use the Scanner class to get the input as a string. Then you can use the DateFormat's parse method to convert it to a date

Thank u.. sir...

Regards
Pradeep
Sep 17 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.