Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6179207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:36:55+00:00 2026-05-24T00:36:55+00:00

I have here a problem on datetime picker. I want to know how to

  • 0

I have here a problem on datetime picker. I want to know how to set datetime picker value on tableview cell.

I have created two controller classes. One controller’s name is display class and the other controller’s name is datetime. I have this second controller page with name display and datetime.

If I start the application I am passing from display page to datetime page and here I have selected a value from datetime page on datetimepickerview and which value I am select this value should auto set on 1controller class on tableview cell.

Would someone give me a hint on how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:36:56+00:00Added an answer on May 24, 2026 at 12:36 am

    You can set your datetimepickervalue in appDelegate file variable. So you can define one sting in your appDelegate file like below

    In appDelegate.h file

    NSString *strDate;
    

    @property (nonatomic, retain) NSString *strDate;

    In appDelegate.m file

    @synthesize strDate;
    

    Now, In Your dateselection controller write below line in viewDidLoad Method.

    YourAppNameDelegate *appDelegate=  [[UIApplication sharedApplication] delegate];
    

    Now, when you done with date selection and before you go back to First view do below.

     appDelegate.strDate = [self convertDueDateFormat];
    
    
    -(NSString *)convertDueDateFormat{
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setLocale:[NSLocale currentLocale]];
      [dateFormatter setFormatterBehavior: NSDateFormatterBehavior10_4];
      NSString *strDateFormat = NSLocalizedString(@"dateFormat", nil);
      [dateFormatter setDateFormat:strDateFormat];
      NSString *dateString = [dateFormatter stringFromDate:pkrDueDate.date];
      return dateString;
    }
    

    Now, in your firstviewcontroller.h file take below label.

    UILable *lblDate;
    

    And in your cellForRowIndexPath Datasource method of your tableview. write below.

    cell.detailTextLabel.text = @"    ";
    lblDate = cell.detailTextLabel;
    

    And in viewWillAppear Method write below.

    lblDate.text = appDelegate.strDate;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my AutoMapper configuration: Mapper.CreateMap<Source, Destination>() .ConstructUsing(s => new Destination(s.CreatedDate.DateTime)); Both classes have
Small problem here with an MVC app that I'm not sure how to figure
I have searched for similar issues but I found nothing... I have a problem
I have a problem with linq to sql query. If someone will help me,
I have a problem with a plone-instance. On startup i get this CRITICAL Message
I have a very strange problem with a LINQ to Entities query with EF1.
I have a gridview that has a usercontrol in a template column on each
I have a list of data in a data table, I also have a
I've been struggling a long time with this problem and I can't get it
well i am developing a simple program (for me) it is for a note

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.