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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:37:57+00:00 2026-05-28T06:37:57+00:00

NSDate * now = [NSDate date]; I get this date one hour earlier. Probably

  • 0
NSDate * now = [NSDate date];

I get this date one hour earlier. Probably it’s because it use UTC.

How can I get system current date?

  • 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-28T06:37:58+00:00Added an answer on May 28, 2026 at 6:37 am

    [NSDate date] returns the current date. However, an NSDate does not have a timezone of its own, it’s just an absolute point in time. The timezone only comes into play when you present the date as a string or convert it into date components (like day, month, hour, etc.).

    Use NSDateFormatter to get a string representation of the date in the current time zone or use setTimeZone: on the date formatter to specify a different one. If you simply use NSLog, the date will be presented in the UTC timezone (by implicitly calling description on the date object).

    Use the NSCalendar method components:fromDate: to extract individual components (with a given timezone) from your date for typical comparisons, like “do these two dates fall on the same day in this timezone?”.

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

Sidebar

Related Questions

How can I get the current hour, minutes, and seconds from this? NSDate *now
I can get current date of iphone via this code as NSDate *currentDate =
Is there a better way to do this? -(NSDate *)getMidnightTommorow { NSCalendarDate *now =
I need to get the current date, but ignoring minutes and seconds, and then
I'm trying to get current hour minutes and seconds. Here is the code I
I am printing NSDate like this: NSDate *date = [NSDate date]; NSString *stringDate =
//Gets the time right now NSDate *now = [NSDate date]; //Stores the difference in
I'm trying to get an NSDate object with the hour, minute, and second initialized
I am using a date formatter string in order to get the current date
My country is located in GMT+0. We are +1 hour now, because we are

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.