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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:47:19+00:00 2026-06-12T20:47:19+00:00

I am storing some information in a handwritten json file. One of the fields

  • 0

I am storing some information in a handwritten json file. One of the fields is a date (of which I need the month & year only.)

In the front end Im employing my JS Frameworks builtin conversion function to present that date into a more human readable format.

My question –
1. How do I get that json date in the first place. Is there a node or web app that can simplify conversions.
2. If I only need the month+year, is there a good way to ignore certain parts of the json date to forget about the specific date inside month and time?

Ref:
http://docs.angularjs.org/api/ng.filter:date

The Json itself is something simple like this –

[
 {
  "title": "One Dummy Book",
  "authors": "One Dummy Author",
  "pubdate": XXXXX
 },
 {
  "title": "Another Book",
  "authors": "Another Author"
  "pubdate": XXXXX
 }
]

How should I write down my publication date or pubdate

  • 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-12T20:47:21+00:00Added an answer on June 12, 2026 at 8:47 pm

    Unfortunately, there’s no specification for the serialization and deserialization of dates in JSON, so this is really up to you.

    You can either standardize on using the unix timestamp, or a more readable value such as ISO-8601, and depending on whether you need your reviver to automatically be able to revivie the value as a Date, you might also need to add some kind of prefix or pattern that designates this as a date – eg ‘//date//1350157276920//date//’ or similar.

    Since you only need the month and the year, using ISO-8601 syntax might be easier as it is simply ‘yyyy-mm’.

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

Sidebar

Related Questions

How would one go about storing positional information in bit fields (the order in
I'm considering storing some date values as ints. i.e 201003150900 Excepting the fact that
Imagine a web-application storing some data-resource with some id which stores three attachment (e.g.
I'm storing some very basic information data sources coming into my application. These data
I am dealing with a csv file that has some customer information (email, name,
I have a Rails app that is storing some user information in a cookie,
I am making one web services part for the app in which i need
I have an application with some AppWidget s. I'm storing some information about every
I'm using Ebean in Play Framework 2 for storing some basic information. This application
Am trying to get some order information from XML file and trying to store

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.