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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:45:47+00:00 2026-06-07T12:45:47+00:00

I get date in this format from web service ( oData Web Service) /Date(847065600000)

  • 0

I get date in this format from web service ( oData Web Service)

/Date(847065600000)

According to this ques. How to handle json DateTime returned from WCF Data Services (OData)

This is a DateTime Object. How can I convert it to a valid iOS date format?

  • 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-07T12:45:48+00:00Added an answer on June 7, 2026 at 12:45 pm

    That number is a unix timestamp i.e. the seconds passed since 1970. You can convert it to NSDate with its initializer:

      NSTimeInterval timeInterval = 847065600000;
      NSDate* date = [NSDate dateWithTimeIntervalSince1970:timeInterval];
    

    UPDATE:

    I checked your number and it seems that it is actually in milliseconds. So you should divide it by 1000 before passing to dateWithTimeIntervalSince1970: to get the correct date.

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

Sidebar

Related Questions

I get JSON from a web service and can not influence the JSON format.
As response from .net service I get this date format: /Date(1233323754523+0100)/ 1233323754523 is date
This is the case. I get the date from DatePicker control: DateTime current =
i get date from xml in this format: 7/16/2010 (mm/dd/yyyy) i have in my
What is the date format to get only hours in 12-hours format from this
Can anybody help me get this date format like Fri, 01 Oct 22:26:23 +0200
How do I get the system date and time in this format: $systime=12/january/2010 10.30
I need to get the date/time format produced from a date / picker which
So I've got a text input that get's date & time in this format:
Possible Duplicate: format date from 14 aug to YYYYMMDD Hi I need to get

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.