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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:18:12+00:00 2026-06-15T19:18:12+00:00

i have a string in a format i don’t really recognize: string received: 36872

  • 0

i have a string in a format i don’t really recognize:
string received: “36872 Dec 12 15:35”
while the windows representation for this date is: “12/12/2012 5:35 PM”

so first, I’m guessing something was corrupted in the date.
second, I’m looking to parse this string to a epoch time format

something like this: “1355371390142” (which is actually “2012-12-13 06:03:10”)

  • 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-15T19:18:14+00:00Added an answer on June 15, 2026 at 7:18 pm

    You can format Dates in Java like this:

    String str = "12/12/2012 5:35 PM"; //Your String containing a date
    DateFormat dF = new SimpleDateFormat("dd//MM/yyyy hh:mm a"); // The mask
    // 'a' value in the Mask represents AM / PM - h means hours in AM/PM mode
    Date date = dF.parse(str); // parsing the String into a Date using the mask
    
    //Date.getTime() method gives you the Long with milliseconds since Epoch.
    System.out.println("Epoch representation of this date is: " + date.getTime()); 
    

    Refer to this for mask options: http://docs.oracle.com/javase/1.5.0/docs/api/java/text/SimpleDateFormat.html

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

Sidebar

Related Questions

I have a date in String format, mm/dd/yyyy I want to convert this to
I have a string of this format 1.0.x.0 I have to write a regex
I have a string in XML format and I want to use this string
Hi I have the following date as String format. Input 2010-04-20 05:34:58.0 Output I
I have a code like this; GridView1.FooterRow.Cells[11].Text = String.Format({0:c}, sumKV) In my computer this
I have a problem that I have Date String in the format 2011-09-28T10:33:53.694+0000. I
I have this code to Format an string string s = the first number
Using String.Format how can i ensure all numbers have commas after every 3 digits
I have a string in the format yyyymmdd. It is a string in bash
I have a string in the format: 'nn.nnnnn' in Python, and I'd like to

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.