Questions tagged as 'date'

2
answers

Increase a date month by month PHP

I have the following variables $fehchaI ='2016-01-01'; $fehchaF ='2017-01-31'; What I want to do is increase the dates month by month and the result is 2016-01-01 2016-01-31 2016-02-01 2016-02-28 2016-03-01 2016-03-31 or 2016-01...
asked by 20.09.2017 / 19:37
1
answer

Given a date (dd-mm-yyyy), get Monday of that week. In number [duplicate]

I am trying to create a function with datapikcer information but I can not find a way to do it. Given a date, for example: (01-09-2017), know what is Monday of this week? In this case I would have to return (08-28-2017). (That would be a speci...
asked by 01.09.2017 / 18:44
1
answer

How to get the number of days, hours and minutes elapsed from a date? in C #

I have tried to get the days, hours and minutes of a date from this: DateTime fecha_actual= "26-07-2017 18:45"; DateTime fecha_ingreso= "25-07-2017 16:45"; TimeSpan ts = fecha_actual - fecha_ingreso int differenceInDias = ts.Days; int differen...
asked by 27.07.2017 / 00:42
2
answers

can a String be converted into a Date list in java?

Within my class, I have the following method public void buscaDetalleIncidencia() { System.out.println("ENTRO AL METODO BUSCA DETALLE POR AÑO/MESSS"); muestraTablaDetalle = true; incidenciaAnioMesDet = anio...
asked by 07.03.2018 / 19:19
1
answer

VBScript insert date within route

I'm doing a process in VBScript. I need to copy some files from one folder to another. That is already done, but the problem is that the name of the folder from which it is copied varies every week, because it corresponds to the date. That's rig...
asked by 28.02.2017 / 21:37
3
answers

Problems formatting a String on date

My problem is that I receive a String element from my form, which can be of these two formats: fecha = "010117"; or fecha = "01012017"; And I need to format them to a date format valid as "01/01/2017" , I've tried to do it in sev...
asked by 05.01.2017 / 08:58
1
answer

Switch from milliseconds to a time in hours, minutes and seconds in Java

I have a variable in String and it is the milliseconds that it takes to get from one point to another. I need to put that value in Hours: Minutes: Seconds format I am using Java 6 and objects Date , but when I send this value to...
asked by 10.11.2016 / 15:14
2
answers

Exceptions order to validate java date

I would like to validate a date with the format MM / DD / AA, through a program, to which this date is passed as a parameter, divide it through StringTokenizer into elements, and take into account the exceptions producing an error when it is a n...
asked by 02.10.2016 / 21:52
1
answer

Pass parameter date to an Android calendar

I am showing in a calendar the events that I have in my DB but I do not know how to pass a date parameter. Calendar calendar1 = Calendar.getInstance(); calendar1.add(calendar.DAY_OF_YEAR, 3);//Aqui esta la posicion, (dia en el que...
asked by 19.12.2018 / 18:15
1
answer

Laravel migration. Problem with timestamp

I have a migration for a travel table. The code is as follows: <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateToursTable extends Migration {...
asked by 03.12.2018 / 00:20