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

  • Home
  • SEARCH
  • 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 6607483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:30:30+00:00 2026-05-25T19:30:30+00:00

Hi all im using a date picker and priting the time taken from picker

  • 0

Hi all im using a date picker and priting the time taken from picker in a label.It is working fine.and i want to print the AM/PM selected from picker.is it possible.Can anyone help me..Thanks in advance

I used the code below:

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"hh-mm"]; 


    selected = [datePicker date];
    NSLog(@"saaa%@",selected);


    NSString *dateString = [dateFormatter stringFromDate:selected];
    NSString *message = [[NSString alloc] initWithFormat:@"Daily Reminder: %@", dateString];

    [dateFormatter release];
    label.text=message;
  • 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-25T19:30:30+00:00Added an answer on May 25, 2026 at 7:30 pm

    Yes, change this:
    [dateFormatter setDateFormat:@"hh-mm"];

    to this:
    [dateFormatter setDateFormat:@"hh-mm a"];

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this date picker from jqueryui . If you look on that
I am currently using a date and time picker to retrieve a user-submitted date
All, I'm using the jQuery UI for the date picker. I'm trying to check
I'm using the Date Picker from the Telerik MVC library. It appears and works
I am using jQuery date picker to display the calendar all over my app.
I have a date picker which is shown using an action sheet. I want
I cannot seem to get this date picker working at all. I know it
Possible Duplicate: Should Usings be inside or outside the namespace sa1200 All using directives
I'm using all of them to print the names of assigned IANA values in
I'm using all of the below to take a field called 'code' from my

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.