Dave Tolls wrote:Use the new date types, not Date and Calendar.
ZonedDateTime would be the one to use..
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Dave Tolls wrote:You say that the start date comes from the database in EST, but the value passed into the method is a String?
Junilu Lacar wrote:
Dave Tolls wrote:You say that the start date comes from the database in EST, but the value passed into the method is a String?
I would bet there's a good chance that the app server's system time is Eastern Time and there's a mix of EST and EDT values because current date/time was captured using new Date() and saved to the database as a String value.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Junilu Lacar wrote:
I would bet there's a good chance that the app server's system time is Eastern Time and there's a mix of EST and EDT values because current date/time was captured using new Date() and saved to the database as a String value.
Kum Sundarah wrote:While extracting from the database, all the fields are taken as string, start_date is formatted with to_char to be in this format. YYYY-MM-dd hh:mm:ss.
Dave Tolls wrote:
Unless the database in question has no DATE/TIMESTAMP type then that's not a very good choice of datatype for it...Junilu Lacar wrote:
I would bet there's a good chance that the app server's system time is Eastern Time and there's a mix of EST and EDT values because current date/time was captured using new Date() and saved to the database as a String value.
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|