innovative Posted May 1, 2013 Report Posted May 1, 2013 [quote name='cherlapalli_jailer' timestamp='1367414982' post='1303690728'] Good Job@inno [/quote] [quote name='karna11' timestamp='1367416599' post='1303690777'] [/quote]
innovative Posted May 1, 2013 Report Posted May 1, 2013 [quote name='maheshbabuy1' timestamp='1367379707' post='1303689717'] Hi all.. I need little help....I need code to Add 2 Business days to a date: For Ex: [font=arial, sans-serif][size=3]if (date != null){[/size][/font] [font=arial, sans-serif][size=3]request.setAttribute("scheduleDate",date);[/size][/font] [font=arial, sans-serif][size=3]}[/size][/font] [font=arial, sans-serif][size=3]Help me.....[/size][/font] [/quote] [quote name='maheshbabuy1' timestamp='1367415481' post='1303690741'] I need to add 2 [b]business days[/b] Bro.... not 2 days.... [/quote] [quote name='maheshbabuy1' timestamp='1367417689' post='1303690825'] evariki teliyada...? [/quote] then mana daggara emanna data source vundali that has got list of holidays... once list of holidays vachaka [b]druva [/b]chepinattu cal object create cheskoni .. if(saturday) - > DAY_OF_MONTH + 2 if(sunday) - > DAY_OF_MONTH + 1 if(holiday) - > DAY_OF_MONTH + 1 rough ga alogo rasa .. ila okasari rasi choodu ..
kiran karthik Posted May 1, 2013 Report Posted May 1, 2013 [quote name='innovative' timestamp='1367420724' post='1303691055'] then mana daggara emanna data source vundali that has got list of holidays... once list of holidays vachaka [b]druva [/b]chepinattu cal object create cheskoni .. if(saturday) - > DAY_OF_MONTH + 2 if(sunday) - > DAY_OF_MONTH + 1 if(holiday) - > DAY_OF_MONTH + 1 rough ga alogo rasa .. ila okasari rasi choodu .. [/quote] [img]http://1.bp.blogspot.com/-Ajr-jsJySXY/T1j1tyVm9_I/AAAAAAAACAg/bYWriQ06Wx8/s1600/sunil+comedy+gifs.gif[/img] classulu conduct seyyochu ga
chandu1987 Posted May 1, 2013 Report Posted May 1, 2013 [quote name='innovative' timestamp='1367420724' post='1303691055'] then mana daggara emanna data source vundali that has got list of holidays... once list of holidays vachaka [b]druva [/b]chepinattu cal object create cheskoni .. if(saturday) - > DAY_OF_MONTH + 2 if(sunday) - > DAY_OF_MONTH + 1 if(holiday) - > DAY_OF_MONTH + 1 rough ga alogo rasa .. ila okasari rasi choodu .. [/quote] you can get the day from that calendar object...inka neeku kavalsinattu conditions ela ayina pettukovachu..
_bulli Posted May 1, 2013 Report Posted May 1, 2013 [quote name='BreakingBad' timestamp='1367419849' post='1303690975'] current vunna date ki 2 days add cheyyala? [/quote] current unna date ki 2 working days add chyyali baa...
_bulli Posted May 1, 2013 Report Posted May 1, 2013 [quote name='innovative' timestamp='1367420724' post='1303691055'] then mana daggara emanna data source vundali that has got list of holidays... once list of holidays vachaka [b]druva [/b]chepinattu cal object create cheskoni .. if(saturday) - > DAY_OF_MONTH + 2 if(sunday) - > DAY_OF_MONTH + 1 if(holiday) - > DAY_OF_MONTH + 1 rough ga alogo rasa .. ila okasari rasi choodu .. [/quote] I dont need of getting any holidays...Just waht ever the day it was, I need to add 2 working days( not sunday and sat) Ex: if the date was Friday it should return Tuesday sat:it should return wed like that....
chandu1987 Posted May 1, 2013 Report Posted May 1, 2013 [quote name='maheshbabuy1' timestamp='1367432028' post='1303692410'] I dont need of getting any holidays...Just waht ever the day it was, I need to add 2 working days( not sunday and sat) Ex: if the date was Friday it should return Tuesday sat:it should return wed like that.... [/quote] paina cheppina logic adhe kadha bhayyaa...[img]http://lh3.ggpht.com/-C1tNikOS2WU/UWqs6IIAgzI/AAAAAAAAMOw/cnlJ8Bnz4Nw/s150/Brahmi.gif[/img]
innovative Posted May 1, 2013 Report Posted May 1, 2013 [quote name='maheshbabuy1' timestamp='1367432028' post='1303692410'] [b]I dont need of getting any holidays[/b]...Just waht ever the day it was, I need to add 2 working days( not sunday and sat) Ex: if the date was Friday it should return Tuesday sat:it should return wed like that.... [/quote] adhe kada mahesh akkada cheppindhi ... saturday and sunday skip cheyyali ante avi holidays ani theliyali kada .. bold : holidays kadhu final output .. that is the middle step we have to find out(or get holidays list from any other data source) inorder to skip them from the days that are available from Calendar object ... i hope you are clear now ..
innovative Posted May 1, 2013 Report Posted May 1, 2013 [quote name='dhruva' timestamp='1367434273' post='1303692679'] paina cheppina logic adhe kadha bhayyaa...[img]http://lh3.ggpht.com/-C1tNikOS2WU/UWqs6IIAgzI/AAAAAAAAMOw/cnlJ8Bnz4Nw/s150/Brahmi.gif[/img] [/quote] +1 [img]http://lh3.ggpht.com/-C1tNikOS2WU/UWqs6IIAgzI/AAAAAAAAMOw/cnlJ8Bnz4Nw/s150/Brahmi.gif[/img]
innovative Posted May 1, 2013 Report Posted May 1, 2013 [quote name='kiran karthik' timestamp='1367424183' post='1303691431'] [img]http://1.bp.blogspot.com/-Ajr-jsJySXY/T1j1tyVm9_I/AAAAAAAACAg/bYWriQ06Wx8/s1600/sunil+comedy+gifs.gif[/img] classulu conduct seyyochu ga [/quote] meeru seniors vundaga memu endhuku .. meeru classes theskovachu ga .. [img]http://www.brahmanandamgifs.com/Images/GIFs/Bhayam/23.gif[/img]
Recommended Posts