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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:34:59+00:00 2026-06-01T05:34:59+00:00

In php there is a list of all the parameters you can pass to

  • 0

In php there is a list of all the parameters you can pass to the date function to format your date http://php.net/manual/en/function.date.php

Is there something similar for objective c?

  • 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-01T05:35:00+00:00Added an answer on June 1, 2026 at 5:35 am

    Here’s one: http://www.alexcurylo.com/blog/2009/01/29/nsdateformatter-formatting/

    Ever wonder just what you could put in NSDateFormatter format strings? Enough to actually go to the trouble of actually dumping specifiers and results? Nah, us neither. But somebody did, and here’s what they found:

    a: AM/PM
    A: 0~86399999 (Millisecond of Day)
    
    c/cc: 1~7 (Day of Week)
    ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
    cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
    
    d: 1~31 (0 padded Day of Month)
    D: 1~366 (0 padded Day of Year)
    
    e: 1~7 (0 padded Day of Week)
    E~EEE: Sun/Mon/Tue/Wed/Thu/Fri/Sat
    EEEE: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
    
    F: 1~5 (0 padded Week of Month, first day of week = Monday)
    
    g: Julian Day Number (number of days since 4713 BC January 1)
    G~GGG: BC/AD (Era Designator Abbreviated)
    GGGG: Before Christ/Anno Domini
    
    h: 1~12 (0 padded Hour (12hr))
    H: 0~23 (0 padded Hour (24hr))
    
    k: 1~24 (0 padded Hour (24hr)
    K: 0~11 (0 padded Hour (12hr))
    
    L/LL: 1~12 (0 padded Month)
    LLL: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
    LLLL: January/February/March/April/May/June/July/August/September/October/November/December
    
    m: 0~59 (0 padded Minute)
    M/MM: 1~12 (0 padded Month)
    MMM: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
    MMMM: January/February/March/April/May/June/July/August/September/October/November/December
    
    q/qq: 1~4 (0 padded Quarter)
    qqq: Q1/Q2/Q3/Q4
    qqqq: 1st quarter/2nd quarter/3rd quarter/4th quarter
    Q/QQ: 1~4 (0 padded Quarter)
    QQQ: Q1/Q2/Q3/Q4
    QQQQ: 1st quarter/2nd quarter/3rd quarter/4th quarter
    
    s: 0~59 (0 padded Second)
    S: (rounded Sub-Second)
    
    u: (0 padded Year)
    
    v~vvv: (General GMT Timezone Abbreviation)
    vvvv: (General GMT Timezone Name)
    
    w: 1~53 (0 padded Week of Year, 1st day of week = Sunday, NB: 1st week of year starts from the last Sunday of last year)
    W: 1~5 (0 padded Week of Month, 1st day of week = Sunday)
    
    y/yyyy: (Full Year)
    yy/yyy: (2 Digits Year)
    Y/YYYY: (Full Year, starting from the Sunday of the 1st week of year)
    YY/YYY: (2 Digits Year, starting from the Sunday of the 1st week of year)
    
    z~zzz: (Specific GMT Timezone Abbreviation)
    zzzz: (Specific GMT Timezone Name)
    Z: +0000 (RFC 822 Timezone)
    

    That should settle your date and time formatting needs once and for all!

    UPDATES:

    Swiftly getting a human-readable date with NSDateFormatter…

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

Sidebar

Related Questions

There's a function in PHP where you can get a list of the user
Is there a list describing all of the data_type parameters you can use in
Is there a way in PHP to get a list of all sessions (and
How can i list the all functions i used in my site using php?I
Is there php function to remove the space inside the string? for example: $abcd=this
Possible Duplicate: Select xml node by attribute in php Is there any function like
Using PHP, I scan a directory and list all of the .xml files. Each
When using PHP PDO to access the database, is there a way to list
I'm wondering if there's a way to list all custom taxonomies that are siblings
I am creating a page where I can list all of my jobs, both

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.