Questions tagged as 'datetime'

1
answer

Check file creation date and delete

I created a Backup application, it saves zipped files in DD-MM-YYY - 00-00-00.zip format, but I would like to know how I would do the create date check for deletion, because the files' names are different for saving to the seconds. Sho...
asked by 04.11.2014 / 14:00
2
answers

Momentjs - How to add / subtract datetime?

Follow the code below: var value = '/Date(1533227866063)/'; var utc = moment().utcOffset() / 60; // -180 / 60 = -3 var datetime_utc = moment(value).format("DD/MM/YYYY HH:mm"); // 02/08/2018 13:37 var convertDatetime = ??? // 02/08/2018 10:37...
asked by 03.08.2018 / 15:03
1
answer

Date format error when it is Brazilian Daylight Saving Day (BRST)

I'm having a problem getting a variable date (Sun Oct 21 01:00:00 BRST 2018) off this one time difference because it is generating a billing error when the date is taken from the database with that 1 hour difference. I've tried using t...
asked by 02.05.2018 / 16:30
1
answer

Convert fraction of time in the format hh: mm: ss

My time data set is stored in the variable time = [0., 0.08333333, 0.16666667, 0.25, 0.33333333, 0.41666667, 0.5, 0.58333333, 0.66666667, 0.75, 0.83333333, 0.91666667, 1., 08333333, 1.16666667] p> Can anyone tell me if there is a simple way to...
asked by 05.02.2018 / 16:25
1
answer

Datetime Picker

I'm using this datetimer picker datetimepicker The date appears like this: 2018 January 30 - 10:00 and I want it to look like this: 2018-01-30 10:00 Can you do it in jquery or do I need to change it directly in the datetime picker code?   ...
asked by 30.01.2018 / 20:56
3
answers

DateTime function C # [duplicate]

I came across an exercise in which the AM / PM format date should be converted to military format (24h). So, suppose the user types 07:05:45 PM, the program should return 19:05:45. I do not like looking for solutions on the internet, but...
asked by 24.07.2017 / 20:25
1
answer

Compare dates in an array?

In the variable dates, you are receiving several dates in string as array , I want to bring the smaller cont = 0 menor_data = datetime.strptime('31/12/2300', '%d/%m/%Y') while cont < len(datas): data_d = datetime.strptime(d...
asked by 27.03.2017 / 01:20
1
answer

Add days to date increasing via For

In the code below I add 1 to each step in the variable i , to add 30 days in the dt field, do I need another for or what to do in it? DbConnection cnx = ADO_Utils.GetConnection(); DbCommand cmd = ADO_Utils.GetComando(cnx);...
asked by 23.04.2016 / 01:45
1
answer

Send UTC from DateTime Javascript to C #

I have an ASP.Net MVC project as follows: In my view I have a JavaScript variable that holds a date: var hoje = new Date(); In my controller I have an action which receives via AJAX the value of the JavaScript variable in a C # vari...
asked by 03.09.2015 / 16:37
1
answer

Format TextBox with date

I have here a form with several textbox and some combobox. What happens when I insert a code and populate the textbox with birth date appears to me in this 01/01/1900 00:00:00 format and I just want the date to appear. Can you help me?...
asked by 22.12.2014 / 16:20