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 9181701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:22:53+00:00 2026-06-17T18:22:53+00:00

I have datepicker, a button and a label. The label says Choose your date,

  • 0

I have datepicker, a button and a label. The label says “Choose your date”, the datepicker is, yeah, a datepicker and the button transfers the date the user picked into the label, like this: “You chose the date 2013-01-18 02:28:58 +0000”.

How can I get the date format to be: “You chose the date 18/01-2013” ??? Without the time and the day/month/year set up?

The code I have in the button IBAction for the transfer to label is:

NSString *words = [[NSString alloc]initWithFormat:@"You chose the date %@", dateSelected];
settDato.text = words;
  • 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-06-17T18:22:54+00:00Added an answer on June 17, 2026 at 6:22 pm

    Use NSDateFormatter, in your .h have

    NSDateFormatter *formatter
    

    Then in viewDidLoad or init method is best

    formatter=[[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"dd/MM-YYYY"];
    

    Then in your IBAction

    NSString *words = [NSString stringWithFormat:@"You chose the date %@", [formatter stringFromDate:dateSelected]];
    settDato.text = words;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Today button to reset a datePicker to today's date. This works
I have this Editor Template so that I have a datepicker set for date
I have a datepicker and on selecting the date and clicking button it should
I currently have my instance of Datepicker displaying the Button Bar panel that includes
can't find solution to this issue. So i have datepicker input field, it works
I have a datepicker, and I pick up two dates, like 2012-04-08 and 2012-05-11.
I have a datepicker on my site. When you select a date, it displays
I have a DatePicker in my app, i'm using this code to retrieve its
I have this code I need apply a theme to a Cacel Button present
I have a DatePicker in my activity. I want to store the selected date

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.