Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

Convert a specified date to a day

Thread view: 
mavina@gmail.com - 19 Apr 2006 04:53 GMT
I'm trying to convert a date to the day of week.
I know how to do this for the current date, but i'm trying to get the
"day" for the "user specified Date".
For eg. i want to get the name of the day for the date "04/13/2006"

Any ideas??

Thanks!
Roedy Green - 19 Apr 2006 05:04 GMT
>I'm trying to convert a date to the day of week.
>I know how to do this for the current date, but i'm trying to get the
>"day" for the "user specified Date".
>For eg. i want to get the name of the day for the date "04/13/2006"

BigDate has a function to do it. See
http://mindprod.com/products1.html#COMMON11

IIRC Calendar does too.  See http://mindprod.com/jgloss/calendar.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Venkatesh - 19 Apr 2006 05:47 GMT
U can use Calendar

Calendar c = Calendar.getInstance();
c.setDate(<whatever date u want>)
c.get(Calendar.DAY_OF_WEEK)

-Venkatesh
Mavina - 20 Apr 2006 05:44 GMT
thanks!

> U can use Calendar
>
[quoted text clipped - 3 lines]
>
> -Venkatesh
Mavina - 20 Apr 2006 05:45 GMT


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.