date-parsing Questions
10
Solved
I have a string in this format:
var testDate = "Fri Apr 12 2013 19:08:55 GMT-0500 (CDT)"
I would like to use Moment.js get it in this format mm/dd/yyyy : 04/12/2013 for display.
I tried ...
Punctual asked 13/4, 2013 at 23:8
5
Solved
I am trying to change the format of a String date from EEEE MMMM d to MM/d/yyyy by, first, converting it into a LocalDate and then applying a formatter of a different pattern to the LocalDate befor...
Cataclinal asked 26/7, 2017 at 8:6
4
Solved
I have string like this:
Mon, 14 May 2012 13:56:38 GMT
Now I just want only date i.e. 14 May 2012
What should I need to do for that?
Slavonic asked 15/5, 2012 at 13:5
7
Solved
My JSON string contains a date field that returns such a value:
"2009-04-04T22:55:16.0000000-04:00"
I am particularly interested in parsing only the date compartment not the time. I tried using ...
Lody asked 24/11, 2009 at 20:55
5
Solved
I've been struggling for a while with this piece of code for an Android app and I can't get the hang of it. I've read and tried every solution I found on stackoverflow and other places, but still n...
Atilt asked 17/8, 2012 at 6:16
35
Solved
How can I convert a string to a Date object in JavaScript?
var st = "date in some format"
var dt = new Date();
var dt_st = // st in Date format, same as dt.
Colubrid asked 11/4, 2011 at 9:21
3
Solved
I'm trying to parse a string containing a date and time using the java.time.format.DateTimeFormatter (my ultimate goal is to get the date from this string into a java.time.LocalDate).
I keep getti...
Penicillate asked 2/2, 2016 at 14:58
5
Solved
I checked the SimpleDateFormat javadoc, but I am not able to find a way to parse the ordinal indicator in a date format like this:
Feb 13th 2015 9:00AM
I tried "MMM dd yyyy hh:mma", but the day...
Amerce asked 14/2, 2015 at 9:48
7
Solved
I have started using mustache.js and so far I am very impressed. Although two things puzzle me. The first leads on to the second so bear with me.
My JSON
{"goalsCollection": [
{
"Id": "d5dce10...
Landin asked 8/4, 2012 at 17:51
9
Solved
I'm trying to parse the date returned as a value from the HTML5 datetime input field. Try it in Opera to see an example. The date returned looks like this: 2011-05-03T11:58:01Z.
I'd like to parse ...
Eschar asked 17/5, 2011 at 23:2
2
Solved
I'm trying to parse a string date to a date . My string date is : 2021-12-16T11:00:00.000Z.
I have the follwing code to parse it to a date object:
val stringDate = "2021-12-16T16:42:00.000Z&qu...
Bastille asked 17/12, 2021 at 14:1
5
Solved
I have this code:
DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
dateFormat.setLenient(false);
Date date = dateFormat.parse("10/20/20128");
and I would expect the dateFormat.pars...
Attribute asked 30/8, 2013 at 13:40
2
Spring Boot defaults allow both dates and datetime values in LocalDate.
E.g. for following DTO:
public class Person {
private LocalDate birthDate;
//getter & setters
}
Both of the followin...
Nuzzi asked 24/7, 2021 at 21:4
7
Solved
I am searching for a java library that can parse a string into a POJO without specifying the format. I have researched POjava. Is there anyother library which does similar thing?
DateTime da...
Ultrasound asked 21/2, 2013 at 19:0
6
Solved
Is there any way to convert a date String to LocalDateTime where the format "yyyy-MM-dd" ?
If I try this:
DateTimeFormatter DATEFORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDateTim...
Mild asked 13/3, 2017 at 11:58
1
Solved
I've read a .xlsb file and parsed date columns using a code below:
dateparser = lambda x: pd.to_datetime(x)
data = pd.read_excel(r"test.xlsb", engine="pyxlsb",
parse_dates=["start_date","end_da...
Sadesadella asked 13/4, 2020 at 11:17
5
Solved
i'm managing a date that comes from an Alfresco Properties and is in the specified (Tue Jul 13 00:00:00 CEST 2010) and i need to convert it to a Java date...i've looked around and found millions of...
Prindle asked 9/5, 2011 at 12:42
7
Solved
I have a String in a database (match.getDate) that has the following date format:
01/04/2018
This is the date I want to format, stored as day/month/year. I want to format this for my Android a...
Ratcliffe asked 9/3, 2018 at 11:4
3
Solved
I have a user input field and would like to parse his date, whatever he puts in.
The user might provide his date with a leading zero or without one, so I wanna be able to parse an input like this ...
Frolic asked 7/8, 2019 at 11:54
2
Solved
I'm parsing a ZonedDateTime using like this:
@JsonSerialize(using = ZonedDateTimeSerializer.class)
private ZonedDateTime expirationDateTime;
I need to be able to properly deserialize this date...
Rodent asked 20/7, 2017 at 11:42
4
Solved
Consider a historic date string of format:
Thu Jan 9 12:35:34 2014
I want to parse such a string into some kind of C++ date representation, then calculate the amount of time that has passed sinc...
Rainbow asked 9/1, 2014 at 13:18
4
Solved
I need to parse date-times as strings coming as two different formats:
19861221235959Z
1986-12-21T23:59:59Z
The following dateTimeFormatter pattern properly parses the first kind of date string...
Penology asked 4/7, 2018 at 15:24
3
Solved
I am reading a text file containing dates, and I want to parse the Strings representing the dates into Date objects in java. What I notice is the operation is slow. Why? is there any way to acceler...
Volteface asked 3/8, 2012 at 14:17
2
Solved
With Java 8, the code below parses "18" into year "0018" instead of "2018".
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("M/d/y");
return LocalDate.parse(date, formatter);
input dat...
Typecast asked 8/1, 2018 at 18:26
1
Solved
Here my java code that try to get current date in UTC on Android device:
public static Date getCurrentDateUTC() {
try {
TimeZone timeZoneUTC = TimeZone.getTimeZone("UTC");
Date localTime = new ...
Pifer asked 15/11, 2017 at 12:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.