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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:19:56+00:00 2026-05-31T04:19:56+00:00

TZ on my comp is GMT+5. final DateTime date1 = dtf.parseDateTime(1979-04-29); final DateTime date2

  • 0

TZ on my comp is GMT+5.

  final DateTime date1 = dtf.parseDateTime("1979-04-29");
  final DateTime date2 = dtf.parseDateTime("1979-05-12");
  final DateTime date3 = dtf.parseDateTime("1979-04-02");
  final DateTime date4 = dtf.parseDateTime("1979-04-15");
  System.err.println(date1.toString());
  System.err.println(date2.toString());
  System.err.println(date3.toString());
  System.err.println(date4.toString());

Output is

1979-04-29T00:00:00.000-05:00
1979-05-12T00:00:00.000-04:00
1979-04-02T00:00:00.000-05:00
1979-04-15T00:00:00.000-05:00  

-04? Why?

If add

DateTimeZone.setDefault(DateTimeZone.forID("Etc/GMT+5"));  

before, then output will be

1979-04-29T00:00:00.000-05:00
1979-05-12T00:00:00.000-05:00
1979-04-02T00:00:00.000-05:00
1979-04-15T00:00:00.000-05:00 
  • 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-31T04:19:59+00:00Added an answer on May 31, 2026 at 4:19 am

    That would be called “Daylight Saving Time” : http://timeanddate.com/time/dst/1979.html

    At 02:00 on 1979-04-29 it changed to -04:00

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

Sidebar

Related Questions

int monthCount = GetMonthCount(comp.PaymentFrequency); int day = comp.MaturityDate.GetValueOrDefault(DateTime.Today).Day; DateTime countFrom = comp.EffectiveDate.GetValueOrDefault(DateTime.Today); return new
Currently in my comp., there are some changes going on regarding project documentation. There
I am not a comp science guy. Managed resources are allocated on the heap.
I have a table dbo.comp has id and name as columns. dbo.comp Name id
Is there a reason why this list comp works: N = 5 d =
I have String like this: LODIXAL COMP 15 How can i split it to
I have a custom component Comp that gets its position changed as a result
On http://groups.google.co.in/group/comp.lang.c/browse_thread/thread/bfb312ad902d94eb/74dcdcacce777679?lnk=gst&q=conditional+operator#74dcdcacce777679 There is an answer given for a question why (A%2==0)?A=0:A=1 gives error.
This is comp sci 101 stuff, but I couldn't find an answer applicable to
I'm taking comp 2210 (Data Structures) next semester and I've been doing the homework

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.