Questions tagged as 'date'

3
answers

as.Date and srtptime commands in R

Suppose the following vector: datas=c("26/12/2014", "27/12/2014", "28/12/2014", "29/12/2014", "30/12/2014", "31/12/2014") When you apply the commands as.Date(datas, "%d/%m%y") and strptimes(datas, "%d/%m%y") the output is: "...
asked by 15.09.2015 / 16:22
1
answer

Convert data with JavaScript?

How do I convert the date in this type 02 Ago 2017 to 02/08/2017 ? I'm using vuejs-datepicker and when selecting it comes in that format, and in the documentation says to do so ... customFormatter(date) { return mo...
asked by 04.08.2017 / 16:34
1
answer

How to filter time in a datime field in eloquent?

How can I compare if a time is equal to a time stored in a datetime column using Eloquent?     
asked by 25.10.2018 / 19:24
2
answers

Convert a date to javaScript

Good afternoon. How do I convert a date to javaScript, taking into account the entered date can be format day-month-year or year-day-month. I have the following code: data = toDate('2015-10-01'); function toDate(dateStr) { dateStr...
asked by 14.12.2015 / 16:43
2
answers

Subtract days from an input date with javascript

I need to get a data from a type number field and add it to a date of input date. I already have, but I must now take the result of that date and subtract 14 days, but I can not do it. I'm a beginner and I need to do this, please help me....
asked by 11.01.2017 / 17:29
2
answers

Update date by adding in bank

Good morning, guys. I have in my database DATE fields for 'start date' and 'end date', so I can search at intervals. When I imported this data some dates were empty or non-conforming and were not recorded correctly. I would like to know: i...
asked by 14.06.2016 / 13:27
1
answer

Delete files created before 10 days ago from the current date

I'm trying to automate the deletion of some backup files that a small application I've made in swing creates, which over time will accumulate, taking up too much space in the network directory, which already has a storage limit. The list of file...
asked by 20.06.2016 / 17:38
1
answer

How to convert a String of this type to a Date Object

I'm working with an ontology in Protegé 4.1 and I have a DataProperty which is a DateTime. I'm getting this DateTime this way: ["2015-06-30T16:38:53"^^xsd:dateTime] How do I put the date this way in a Java Date object? (I'm using Java 7)...
asked by 01.07.2015 / 23:33
4
answers

Convert date format to php

I'm working with Wordpress php and I get from the database a date in the following format: "October 22, 2018", plus I need to convert it to "2018-10-22", How do I get this? I tried: date('Y-m-d', strtotime(get_post_meta( $id_pedido, "Data de...
asked by 23.10.2018 / 19:35
1
answer

Calculate age by taking a date of type Date

I would like to calculate the age by taking the date of birth from the database, using pojo . I was looking at how to do a date calculation by looking at this question: Calculate age by day, month, and year My date in the database...
asked by 06.08.2017 / 03:18