Questions tagged as 'datetime'

2
answers

Convert a dd / MM / yyy string to DateTime

I have a date filter that should receive the information from a textbox and convert it to DateTime, so that I can compare it to another date. The textbox sends the date in the format dd / MM / yyyy, but at the time of converting values where the...
asked by 08.04.2016 / 18:19
1
answer

Specific time for day of the week in datetimepicker

I have a specific form of datetimepicker, working cool, however, I need every day of the week to have a different time, for example, on Sunday there are 2 available times, the second 3 times, the other another time on Tuesday, how can I do that?...
asked by 30.10.2015 / 12:51
3
answers

Filters records via datetime and fetch them between a start date and end date

I have the balance table, which always when executing a procedure, is generated a new record in the same, being able to have several record the same day ... However, when I make an appointment, I want to bring only the last record of each da...
asked by 19.06.2015 / 19:57
1
answer

Error when setting time difference with Datetime after 00:00

I have a problem finding the time between two times with datetime when the exit time is between midnight and one in the morning. For example, if the first time is 14:00, and the second is 23:00, it returns certain:    9 hours Bu...
asked by 18.04.2015 / 04:45
1
answer

Convert javascript date to work in PHP

I'm trying to capture the file date via javascript and send it to PHP. Reason? I want the date of the last file change. $('#last_modified').val(arquivo[0].lastModified); Variable file is: <input type="file" name="teste" onchange=...
asked by 12.03.2015 / 18:38
1
answer

How can I show the next 7 Days (Agenda) C #

Live, good night I'm working on a C # solution, in which I have to develop a schedule and I plan to show the events (if any) at a certain point, as well as show the following 7 days, even if they do not have marked events. > I developed a m...
asked by 01.02.2015 / 00:26
1
answer

Dates with JSON / Highcharts

I'm having a problem with dates when plotting a Highcharts chart using JSON object. Data for date information is being displayed as follows: TheserversendsJSONasfollowstotheclient:[HttpGet]publicJsonResultDadosAtendimentosParticularesPorDe...
asked by 06.01.2015 / 20:42
1
answer

Python - Convert mysql datatime

I'm trying to compare the current date with the last record date of my mysql database: sql2 = "SELECT created_at FROM tempaverage WHERE created_at IN (SELECT max(created_at) FROM tempaverage)" cursor.execute(sql2) current = strftime("%Y-%m...
asked by 04.03.2015 / 15:12
1
answer

Conversion of string to datetime with specific format

I have string in the following format: 16Mar2009 (mon) , but I am not able to convert to datetime . string format = "dMMMyyyy(dd)"; DateTime dt = DateTime.ParseExact("16Mar2009(mon)", format,CultureInfo.InvariantCulture); Re...
asked by 20.01.2015 / 22:27
1
answer

date validation

I'm creating a validation class and I have a method to validate dates. When I am going to validate based on now , strtotime calculates including hour. $v->rule( '07/28/2014' , 'before.2014' ) this rule only validates the yea...
asked by 28.07.2014 / 23:15