Questions tagged as 'datetime'

1
answer

Set DateTimePicker start date always Monday C #

I am developing a Windows Forms application in C #. I have a DateTimePicker that I will call dtp1 . It happens that what I need is that this dtp1 always have the date on Monday of the current week. That is, If today...
asked by 07.10.2016 / 00:55
1
answer

how can I add a time stamp to a file

from datetime import datetime fecha=datetime.now() how can I concatenate the date value to the name of a file archivo=fecha+.log so that I stay with this format 2018-10-29-12:31:31.log     
asked by 29.10.2018 / 09:25
1
answer

Long to Float in Java?

Good morning, I have the following problem I get in a variable of type Long a conversion of milliseconds to hours, but I need to store them in a Float type variable. tiempos.setFechaHoraFinal(fechaActual); tiemposFacade.edit(tiempos);...
asked by 11.09.2017 / 15:28
1
answer

Loading a document ready after AJAX response

Good evening, I have a page where clicking on a button clears a div and in it loads a form with a date field (more specifically with the DateTimePicker plugin). In that same file I have a script that loads the datetime configuration to put it in...
asked by 18.05.2017 / 01:39
1
answer

Date format changes to English Reporting Service

I have a report which shows in its content the date of a calculation, which should be formatted in Spanish, eg: March 22, 2017; However, it is shown in English: 22 MARCH 2017. When I review the dataset that I get, it has the following format: dd...
asked by 01.03.2017 / 18:21
2
answers

Datetime Javascript to Datetime C #

I am trying to send an object by means of a POST request, however I have some problems with one of the attributes of that object (datetime). date = $("#dpkparam").val(); fecha = new Date(date.replace(/(\d{2})-(\d{2})-(\d{4})/, "$2...
asked by 13.04.2016 / 23:40
1
answer

Incorrect datetime value in MySQL

I was trying to register using a query in c # the datetime.now in a MySQL database What I do in c # is: cmd.CommandText = "INSERT INTO cola_llamadas(fecha,queueName,cola)" + "VALUES(DATE_FORMAT('"+DateTime.Now+"', '...
asked by 24.10.2017 / 16:48
1
answer

How to call data in csv of date and time that are in the same column, to make a daytime cycle?

I am very new to this! I'm looking at a class called data analysis, where we are asked to perform a diurnal cycle of a time series that measures radiation per minute, but I have a file in csv where in a single column I have the date and time, as...
asked by 25.11.2016 / 18:27
1
answer

Give a specific format to a date field in a gridview

I am using a gridview in ASP.NET and I am loading it with a sql statement and I activate the function of selecting the row <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderColor="Black" DataSo...
asked by 30.09.2016 / 16:08
3
answers

Pass string to DateTime and take DateTime date only.Now [Updated]

When creating a product object that has a DateTime field that field filled it with a DateTime.Now that data is saved in a txt as 03/09/2018 08:42:18 p.m and trying to get the data again with a DateTime.Parse(corte[2]) I get that...
asked by 04.09.2018 / 03:22