Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

date problem while adding Event to iPhone calendar -


while adding event calendar of iphone, date going reseted 1.1.2001 , have no idea why.

id arg1 = [args objectatindex:0];  // start id arg2 = [args objectatindex:1];  // end id arg3 = [args objectatindex:2];  // title id arg4 = [args objectatindex:3];  // location id arg5 = [args objectatindex:4];  // text  nsdateformatter *df = [[nsdateformatter alloc] init]; [df setdateformat:@"yyyy-mm-dd hh:mm:ss"]; nsdate *startdate = [df datefromstring: arg1]; nsdate *enddate = [df datefromstring: arg2];  ekeventstore *eventstore = [[[ekeventstore alloc] init] autorelease];  ekevent *event  = [ekevent eventwitheventstore:eventstore];  event.title     = arg3; event.location  = arg4; event.notes     = arg5; event.startdate = startdate; event.enddate   = enddate;    [event setcalendar:[eventstore defaultcalendarfornewevents]]; nserror *err; [eventstore saveevent:event span:ekspanthisevent error:&err]; 

the input seems fine since

nslog([args objectatindex:0]); 

writes correct date. have no real idea :(

your input maybe correct formatter not. please, review these 2 lines. believe bug there

[df setdateformat:@"yyyy-mm-dd hh:mm:ss"]; nsdate *startdate = [df datefromstring: arg1]; 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -