BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-01-2010, 04:50 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2010
Model: 7100T
PIN: N/A
Carrier: job
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post hi please help me find number of day there in given two dates in string format

Please Login to Remove!

find number of day there in given two dates. that mean give two dates means one is current date another one is get in string format month and date only there, calculate number of day .ex 1. 31/3/10 2. 4/4 my out put is 4 days finish that day .help code immediatly.
Offline  
Old 04-01-2010, 05:51 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think you have to parse date manually and after that you can create date object.

Code:
// for date 31/3/10
monthnum = 3;
daynum = 31;
year = 10;
Calendar getCal = Calendar.getInstance();
            getCal.set (Calendar.MONTH,monthnum );
            getCal.set(Calendar.DAY_OF_MONTH,daynum);
            getCal.set(Calendar.YEAR,yearnum);
            Date date = getCal.getTime();
__________________
blog.vimviv.com
Offline  
Old 04-01-2010, 08:29 AM   #3 (permalink)
Appleinator
 
Dubdub's Avatar
 
Join Date: Nov 2005
Location: New Hampshire
Model: App6+
OS: AJBR549
PIN: Ask
Carrier: ATT & Verizon
Posts: 20,038
Post Thanks: 52
Thanked 777 Times in 737 Posts
Default

Please do not double post. This thread is closed.
__________________
-->>BB FAQ

-->>Stinsonddog's Tip Site!

-->>Twitter


If someone helps, tell them by clicking the Thanks button.!!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Johnson Controls PENN Head Pressure Fan Cycling P70AA-118C w/bracket
$35.0
Johnson Controls PENN Head Pressure Fan Cycling P70AA-118C w/bracket pictureJohnson Controls MS-NAE3511-1 Metasys Controller 2x unt 1108 & 3x unt 111-1
$300.0
Johnson Controls MS-NAE3511-1 Metasys Controller 2x unt 1108 & 3x unt 111-1 pictureJohnson Controls V11HAA-100 Solenoid Air Valve, 3-Way, 120 Volt, Pneumatic EP
$112.1
Johnson Controls V11HAA-100 Solenoid Air Valve, 3-Way, 120 Volt, Pneumatic EP pictureJohnson controls M9208-BGA-3 70 in-lb rotary actuator
$75.0
Johnson controls M9208-BGA-3 70 in-lb rotary actuator picturejohnson controls metasys NU-NCM350
$800.0
johnson controls metasys NU-NCM350 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.