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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:16:37+00:00 2026-05-13T12:16:37+00:00

Reference to pre-answered question at: Getting first and last days of current week There

  • 0

Reference to pre-answered question at: Getting first and last days of current week

There are two answers in the above link. One of them is theoretical and the other is in a language called as PyObjC (Python-Objective C bridge language), and a quick google search confirms that PyObjC does not work with iPhone SDK.

So regarding the question, how is it possible to get the PyObjC code translated to be compatible with iPhone SDK.

Target: Supposing today (Tue.) is 19th, and Sun. was 17th (start of week) and Sat. 23rd is end of week. I want to get a string like 19/01 – 23/01 [i.e. The start of week (hypen) end of week]

  • 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-13T12:16:37+00:00Added an answer on May 13, 2026 at 12:16 pm

    If you have an NSDate, you can use the current NSCalendar to retrieve that date’s NSDateComponents. Set the NSDateComponents‘s weekday to 1 (the first day of the week), create a copy, and set the copy’s weekday to 7 (the last day of the week). Then use the NSCalendar to convert both the NSDateComponents back to their respective NSDate objects, after which you can use an NSDateFormatter to create your string representation.

    This link has an example about how to get a date’s weekday: https://stackoverflow.com/questions/1057349#1057405

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

Sidebar

Related Questions

Reference: This is a self-answered question. It was meant to share the knowledge, Q&A
With reference to the question I asked couple of days back, it seems to
I'm using EF Code First with a pre-existing database. Two objects: public Foo {
I understand pre-order, in-order, and post-order tree traversal algorithms just fine. ( Reference ).
In reference with this question We have a header with a date picked component
In reference to this answer to a Stack Overflow question : what is bench-testing
I reference the current page in a class with Page page = HttpContext.Current.CurrentHandler as
Microsoft Speech Recognition comes with a Speech Reference Card. It consists in some pre-determined
In reviewing: http://developer.android.com/reference/android/graphics/Canvas.html I'm wondering translate(): preconcat the current matrix with the specified translation
I am using following code to pre-populate the post dialog. But I'm getting a

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.