Top "Date-formatting" questions

Date formatting is the process of displaying, handling or converting a calendar date to a specific format.

Joda time - Parsing string throws java.lang.IllegalArgumentException

Shouldn't a String formatted with a specific DateTimeFormatter be able to be parsed using LocalDateTime.parse()? Test DateTimeFormatter formatter = ISODateTimeFormat.…

java jodatime date-formatting date-parsing
Is it possible to change the iOS Simulator to use 24 hour time?

I'm trying to debug a potential issue in the iOS Simulator (v 7.0) which requires the iPad to be running in 24…

ios time ios-simulator date-formatting time-format
GETDATE() function in SQL server

When running the SQL query: select GETDATE() I get the below output: 2017-10-26 12:48:41.273 It displays the date and the …

sql sql-server-2008 date-formatting getdate
Error: Attempted to call method "format" on null context object

Spring-boot v1.4.1 Java v1.8 Thymeleaf v2.1.5. The following line of code in my view: <td th:each = "sprint : ${sprints}" …

java spring spring-boot thymeleaf date-formatting
Extract date from given string in r

string<-c("Posted 69 months ago (7/4/2011)") library(gsubfn) strapplyc(string, "(.*)", simplify = TRUE) I apply above function but nothing happens. In …

r date-formatting
Cakephp 3.2 change default date format

I try to set the default date format of CakePHP 3.2 from dd.mm.YYYY to YYYY-mm-dd, so I will not …

date cakephp format date-formatting cakephp-3.2
How to validate dates without leading zero on day and month?

I need to validate a precise date format in php. In my case the optimum date format should be: e.…

php validation date date-formatting leading-zero
Django - change default presentation format of model date field

I have a model with DateField, set like this : date = models.DateField(blank=False, default=datetime.now) each time I …

python django date-formatting datefield
Angular material datepicker - select date only

I have a Material Datepicker from which I would like to only get date with no timestamp. Since my timezone …

angular datepicker angular-material date-formatting
swift - custom local date formatting

Using swift, I'd like my custom dateFormatter.dateFormat to be MMM-d or d-MMM depending on user's location. It seems easy …

swift localization internationalization date-formatting