datetime-format Questions

6

Solved

Here is my method to parse String into LocalDateTime. public static String formatDate(final String date) { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SS"); L...

4

Solved

I am using java 11. Wanted to know whats the best(Most importantly Recommended) way to validate if the datetime string is ISO8601 complaint in java. Also how to compare this string value with java....
Groff asked 16/11, 2020 at 16:29

6

Solved

I have a DateTime object which I'm currently formating via $mytime->format("D d.m.Y") Which gives me exactly the format I need: Tue 5.3.2012 The only missing point is the correct languag...
Rogerrogerio asked 5/1, 2012 at 15:23

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...

5

Solved

I have a DateTime varchar in this format: 2005-08-08T00:00:00+01:00. Does this format have a name? (it's not ISO8601. Is it RFC3339?) How can I convert it to a DateTime using Transact-Sql? EDIT...
Lanciform asked 24/4, 2012 at 15:3

6

Solved

Even though it seems like this question has been asked a bunch of times, I can't seem to find an answer that is specific to my question: I have a variable that is read from an XML file by a C# XML...
Chilli asked 18/7, 2012 at 22:16

8

Solved

I need to get the current time, in Hour:Min format can any one help me in this.
Loux asked 6/10, 2009 at 14:26

6

Solved

I am using the following to format a DateTime: DateTime CusDate = dateTimePicker1.Value; string Date = CusDate.ToString("ddMMMyyyy"); I am getting the format such that "Nov" is not in upper case...
Overcheck asked 20/11, 2011 at 8:38

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

2

Solved

I encountered a problem with converting the airflow macros reference 'ts' into a datetime object. The problem is with the tz at the end of the string. from datetime import datetime timetoday = kwa...
Bayne asked 27/8, 2019 at 0:53

5

Solved

I have a field with a date/time value like this: 2009-11-17 18:40:05 It's in UTC. In the query how can I convert this to EST? I'm trying something like this but it throws an error. // datetime...
Carilyn asked 17/11, 2009 at 19:11

7

Solved

I have a string which should specify a date and time in ISO 8601 format, which may or may not have milliseconds in it, and I am wanting to get a struct tm from it as well as any millisecond value t...
Guidance asked 12/11, 2014 at 19:55

2

Solved

I have the following java code: SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SXXX"); String timestamp = simpleDateFormat.format(new Date()); System.out....
Melitta asked 20/9, 2016 at 12:14

3

Solved

I have a function in Javascript that receives a C# DateTime from MVC. If the date is null it should return "-", if it's a valid date it should return the formated date. IMPORTANT: It's not possibl...
Helpmate asked 30/7, 2013 at 14:39

1

It looks like Safari's implementation of Int.DateTimeFormat assumes that the second Sunday in March will ALWAYS be the DST time cutoff which is not correct as prior to 2007 it was the first Sunday ...
Cockatoo asked 21/5, 2019 at 16:25

5

I would like to test a filter function I wrote which return a date formatted using Intl.DateTimeFormat('en-GB', options): // module "date.js" export default function (dateISOString) { const optio...
Jose asked 1/3, 2018 at 15:12

2

Solved

So I have a Javascript date object with year, month, days, hours, minutes, seconds, and milliseconds data and I need to convert this object to an Excel serial number but I didn't find a way to do t...
Lubricous asked 21/1, 2022 at 16:55

9

Solved

I want to calculate EXACT past 30 days time period in php from now (for example 30 aug 14 23:06) to 30 days back (for example 1 aug 14 23:06). I wrote this where current datetime goes in $d1 and pa...
Protuberance asked 25/9, 2014 at 17:41

16

Solved

I'm adding UTC time strings to Bitbucket API responses that currently only contain Amsterdam (!) time strings. For consistency with the UTC time strings returned elsewhere, the desired format is 20...
Multiphase asked 3/11, 2011 at 18:18

5

Solved

I'm working on a flutter app as a project and I'm stuck with how to get the difference between two times. The first one I'm getting is from firebase as a String, which I then format to a DateTime u...
Reamy asked 23/2, 2020 at 13:30

3

I have a question regarding converting a tseries.period.PeriodIndex into a datetime. I have a DataFrame which looks like this: colors country time_month 2010-09 xxx xxx 2010-10 xxx xxx 2010-11...
Afterimage asked 1/4, 2015 at 15:22

13

Solved

I am simply trying to convert a date string into a DateTime object in Java 8. Upon running the following lines: DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd"); LocalDateTime...
Representational asked 13/12, 2014 at 0:4

7

Solved

How to parse this format date string 2013-03-13T20:59:31+0000 to Date object? I'm trying on this way but it doesn't work. DateFormat df = new SimpleDateFormat("YYYY-MM-DDThh:mm:ssTZD"); D...
Armchair asked 15/3, 2013 at 13:10

14

Solved

I tried this: <input type="datetime-local" value="<?php echo $row['Time']; ?>" class="date" name="start" REQUIRED> How can I set the value of this input field with the data from the ...
Taproot asked 28/11, 2016 at 11:38

16

How to convert date format to DD-MM-YYYY in C#? I am only looking for DD-MM-YYYY format not anything else.
Tabloid asked 10/1, 2011 at 17:36

© 2022 - 2025 — McMap. All rights reserved.