amazon s3 - Need to format and create an NSString -


I need to create an NSString which is equal, current year-month-day-hour (24) -minnet-seconds -Milisecand .filetype

This will plug in this NSstring

  NSString * filename = [[NSBundle main bundle] pathForResource: [NSString stringWithFormat: @ "image% d", ImageNo] ofType: @ "png"];  

try it

  NSDateFormatter * df = [ NSDateFormatter new]; Df.dateFormat = @ "yyyy-MM-dd-HH-mm-ss-S"; NSLog (@ "% @", [DF StringFormat: [Date of NSDT]];  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -