date-formatting Questions

6

Solved

Crashes on: <?php $date = "13-06-2015 23:45:52"; echo Datetime::createFromFormat('d-m-Y h:i:s', $date)->format('Y-m-d h:i:s'); ?> PHP Fatal error: Call to a member function forma...
Anibalanica asked 10/6, 2015 at 0:4

4

Solved

Our application previously defined the default date format as DD/MM/YYYY in config/application.rb like so: Date::DATE_FORMATS[:default] = '%d/%m/%Y' This worked as expected in Rails 6.1, but after...
Franklinfranklinite asked 18/2, 2022 at 16:53

3

Solved

I am developing using Java 8 a function that must handle the conversion from String to LocalDateTime of the following dates: 2019-06-20 12:18:07.207 +0000 UTC 2019-06-20 12:18:07.20 +0000 UTC 201...
Dalury asked 19/8, 2019 at 8:50

1

Where can the official list of Date.prototype.toLocaleDateString formats be found? It's not linked from that MDN page, and the accepted answer to this confusingly phrased question lists a different...
Wigeon asked 27/9, 2018 at 0:47

6

I'm trying to convert a number (yyyymmdd) to date (mm/dd/yyyy) For example 20150302 ====> 03/02/2015
Cretaceous asked 14/7, 2015 at 11:53

3

Solved

Suppose I have a variable like this c<-c("9/21/2011 0:00:00", "9/25/2011 0:00:00", "10/2/2011 0:00:00", "9/28/2011 0:00:00", "9/27/2011 0:00:00") what's a quick way to remove all 0:00:00s so...
Stinking asked 15/4, 2014 at 16:52

7

Solved

How can I display only the last two digits of the current year without using any substring algorithms or any third party libraries? I have tried the below method and it gave a four-digit year. I w...
Propose asked 19/11, 2013 at 11:26

7

How can I insert into table with different input using / ,with date datatype? insert into run(id,name,dob)values(&id,'&name',[what should I write here?]); I'm using oracle 10g.
Pratique asked 17/12, 2015 at 8:27

3

Solved

Is there a way to format a day and month (in compact form), but not year, in the locale-correct order in Java/Kotlin? So for English it should be "Sep 20" but for Swedish "20 sep.". For compariso...
Plication asked 28/6, 2019 at 6:49

2

Solved

I have checked out the following question/responses: How do I get the format of “yyyy-MM-ddTHH:mm:ss.fffZ” in php? The responses include links to Microsoft documentation to format dates but these ...
Halidom asked 7/7, 2014 at 7:45

9

I am trying out jekyll for website creation. I am using jekyll-bootstrap. The default configuration has the page archive, where all the posts are listed grouped by year and month of the post date...
Klansman asked 23/5, 2012 at 7:1

5

I am trying to return a date with this format 2015-10-07T00:32:50.877+0000 I have tested that Time.now.iso8601 => "2015-10-21T09:47:50-04:00" but i didn't have same format tks
Bronchi asked 21/10, 2015 at 15:2

4

Solved

I recently added a new model to my site, and I'm using an admin.py file to specify exactly how I want it to appear in the admin site. It works great, but I can't figure out how to get one of my dat...
Pulchritude asked 27/8, 2011 at 19:15

3

Solved

I have a small code that gets the Day Name of the Dates listed in Excel. But the problem is, it's not getting the right Day Name(e.g. Tuesday). For Example: sDayName = Format(Day(11/1/2016), "dd...
Byte asked 3/11, 2016 at 18:28

6

I taken over responsibility for a Symfony2 application, built on the Sonata Admin Bundle, and have been asked to make a small change by the users. In the xls export of a list page, the dates all ap...
Terminate asked 2/9, 2014 at 13:29

9

Solved

This docs mention moment.ISO_8601 as a formatting option (from 2.7.0 - http://momentjs.com/docs/#/parsing/special-formats/), but neither of these work (even 2.7.0): var date = moment(); date.forma...
Bounden asked 8/9, 2014 at 13:7

22

Solved

I'd like to format a duration in seconds using a pattern like H:MM:SS. The current utilities in java are designed to format a time but not a duration.
Preinstruct asked 5/11, 2008 at 21:43

4

I am trying to parse a date 2014-12-03T10:05:59.5646+08:00 using these two formats: yyyy-MM-dd'T'HH:mm:ss yyyy-MM-dd'T'HH:mm:ssXXX When I parse using yyyy-MM-dd'T'HH:mm:ss it works fine, but wh...
Crusty asked 21/9, 2015 at 11:58

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

3

Solved

I need to select entries based on dates happening in the future and the entries contain the date format: 12/30/17 I'm trying to format the date and compare to Carbon::now() timestamp, with no l...
Chondrite asked 29/12, 2017 at 17:29

3

Solved

I am trying to work with dates in an sqlite database. I am storing my dates as timestamps, but when I use strftime() to format them to human readable dates I am getting back unxpected results. Con...
Soucy asked 9/8, 2010 at 11:43

6

Solved

I am new to android. In android I want to display only current time in a textview in the format hh:mm am/pm (eg: 3:02 PM) I use the following code. String currentDateTimeString = DateFormat.getDat...
Weathercock asked 26/11, 2013 at 9:10

2

I have a Material Datepicker from which I would like to only get date with no timestamp. Since my timezone is GMT+2, API always receives something like 03.04.2018 22:00:00 UTC, but I would like to ...
Deflexed asked 4/4, 2018 at 11:44

5

Solved

How can i convert the datetime format below 2010-10-25 11:13:36.700 into 25-Oct-2010 or 2010-10-25 00:00:00.000
Astrionics asked 25/10, 2010 at 3:18

4

Solved

I've got a pandas.Series object that might look like this: import pandas as pd myVar = pd.Series(["VLADIVOSTOK 690090", "MAHE", NaN, NaN, "VLADIVOSTOK 690090", "2000-07-01 00:00:00"]) myVar[5] i...
Triplicate asked 28/7, 2015 at 21:27

© 2022 - 2025 — McMap. All rights reserved.