149 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rproffitt

Here's the screen grab: ![50yearsAgoOnDaniweb.PNG](https://static.daniweb.com/attachments/1/9fb4572ed18ebec0e88c9822adaa0152.PNG) Here's the link to the 50 years ago reply: https://www.daniweb.com/posts/jump/ (doesn't work) Here's the link to the discussion: https://www.daniweb.com/programming/software-development/threads/523223/im-having-a-difficulty-in-a-program-in-c-net-framework Something happened. Don't know but interesting bug there.

Member Avatar for rproffitt
0
84
Member Avatar for Dani

I use `<input type="date">` and it works fine to bring up a date picker in Chrome and Firefox. However, it behaves as a normal textbox in Safari.

Member Avatar for rproffitt
0
43K
Member Avatar for shany0786

..... for (i = start_from; i < finish_by; i++) { var todayObj = new Date(); var current_hour = todayObj.getHours(); console.log(current_hour); var dateObj = new Date(date); if((dateObj.toDateString() == todayObj.toDateString()) && i<=current_hour){ /*no print*/ }else{ var time_in_12 = contvert_in_12_hours_time(i,(i+1)) content += '<div class="col-md-10 col-md-offset-1 avail_time">\n\ <input title="Book time slote" type="button" class="set_appoint_time unselected_time" …

0
167
Member Avatar for nitin1

Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? I am using Java 8. Can you please help me with this? Searched the web a lot. Some are saying …

Member Avatar for JamesCherrill
0
810
Member Avatar for Stefce

How can i get the end of the month or the beggining of the month to create a new table for records ? i have this code but it gets the current month... <?php $user = getUserData('users', 'UserUsername'); $sql = "SELECT `ticket_id`, `Uplata`, `Dobivka`, `Date` FROM `kladilnica` WHERE `Username`='$user'"; $result …

Member Avatar for Stefce
0
306
Member Avatar for calebcook

Hi. I need to be able to display each day of the current month excluding Sunday in a format: month/day (eg. 11/11). So I want the output to be: [CODE]11/11 11/12 //excludes Sunday 11/14 11/15[/CODE] etc. Does anyone know how to do this? Thanks

Member Avatar for Adriano_1
0
4K
Member Avatar for Joemeister

I want to know how to achieve the following: I want to convert a varchar to a date format but so far I'm not very successfull... My date (varchar) looks something like this: 02-02-2012 11:48 AM And I want to convert it to the following this: dd-mm-yyyy To be able …

Member Avatar for Joemeister
0
289
Member Avatar for Niloofar24

Hi friends. With `datetime.datetime.now()` or `datetime.datetime.today()` i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian calendar) for my program; then what should i do? As my pc os date is set to English calendar so …

Member Avatar for Niloofar24
0
330
Member Avatar for Niloofar24

Hello friends. I want to create a countdown program for the new year that is comming. I know i can use this code for example, for short certain time: from threading import Timer def sayhi(): print "hello everybody!" t = Timer(10, sayhi) t.start() But the new year begins in 29 …

Member Avatar for Niloofar24
0
816
Member Avatar for Szabi Zsoldos

Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - …

Member Avatar for Watael
0
1K
Member Avatar for javed.iqbal.3979

In an attempt to use selection lists in php ,i tried it for displaying date on a web page <?php echo"<html> <head><title>Select a Date </title></head> <body>"; $monthname=array(1=>"January","Februray","March","April","May","June","July","August","September","October","November","December"); $time=time(); $today_date=date("M-d-Y",$time); //returns the current date echo "<div style='text-align:center'>\n"; echo "<h3>Today is $today_date</h3><hr />\n"; echo "<form action='process_form_date.php' method='POST'>\n"; //selection list for month $todayMO=date("M",$time); …

Member Avatar for javed.iqbal.3979
0
275
Member Avatar for bnitishpai

I have a textbox to enter date into a MS Access database. I've tried entering 29-02-2000. But it is saved as 28-01-1900 in Access. I've tried entering 02-20-2000. But it is saved as 01-01-1900 in Access. My system shortdate format is dd-MM-yyyy. My system longdate format is dd MMMM,yyyy. My …

Member Avatar for bnitishpai
0
239
Member Avatar for Praveen_10

I need to insert a cobobox value ,date value into database but am not sure if this is the method...i keep getting an exception saying 'Incorrect syntax near '@Numberpassengers'.' private void button1_Click(object sender, EventArgs e) { string c = ""; string s = ""; string d = ""; string t …

Member Avatar for Praveen_10
0
417
Member Avatar for nadiam

Hi guys. i have an event page that displays events from database. in my database I have a column with datetime format. is there a way to only get the date or time separate from each other in a select to be displayed? php: <?php require "connection.php"; $sessid = $_SESSION['sess_user_id']; …

Member Avatar for nadiam
0
2K
Member Avatar for VNexus

Hi Everyone, Thank you ahead of time for taking a look... Basically, the tables, rows, name and id tags below shown are pulled through by using PHP/cURL (code not shown for sake of realty). Generally, what I am looking to accomplish, is to use JavaScript to loop and parse through …

Member Avatar for VNexus
0
312
Member Avatar for jonsan32

If anyone is able to help, I'd like to create a single-line text on my site that says "Happy birthday to Samantha" whenever it's her birthday, or whenever it's another kid in my program's birthday. Including the capacity for multiple birthdays on the same day (comma spaced), the date, and/or …

Member Avatar for jonsan32
0
1K
Member Avatar for thirteen_xx

Hi, I'm new to vb and I need to record the time the user used a certain privilege and the time s/he finished using it. i used date/time picker but whenever i run the program, i can't edit the time. only the date. help please?

Member Avatar for thirteen_xx
0
801
Member Avatar for mavtcr

Friends again problem with date function In my form there is a text field -txtDod- of Date type formated like "dd-MMM-yyyy" My input is also formated like "dd-MMM-yyyy" Now see my code Private Sub TxtDod_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case vbKeyReturn If Not IsDate(TxtDod) Then LblMsg = "Enter Date …

Member Avatar for Minimalist
0
275
Member Avatar for patk570

Hi, I have 2 fields that are used for date. In my fucntion, i have it format the date into Y-m-d format, $purchase_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['purchase_date'])); $warranty_end_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['warranty_end_date'])); But when I enter a date into it, it just puts 0000-00-00 I thought this was the correct format, but seems to …

Member Avatar for patk570
0
1K
Member Avatar for rpv_sen

Hi I am trying to convert julian date in to date format. can any one please help me. **For Example:** Julian date - 114021 Output Should be as below 2014/01/21 - (YYYY/MM/DD)

Member Avatar for pritaeas
0
371
Member Avatar for PriteshP23

Hello, I have csv filename with date. Everyday i have same csv file with respective date. I need to read filename (*everyday date changes in filename*) and do operation. For example, I have file "**cells_20140106_165532.csv**". I did like this to read it in general: $filename = "cells_".date('Ymd_hmi').".csv"; $file_contents = file_get_contents($filename); …

Member Avatar for diafol
0
1K
Member Avatar for PriteshP23

Hello, I have one "**tar.Z**" file. Objective is to unzip it by shell script and check the date. * archive: filename_20140103_1540.tar.Z #!/bin/bash cd $REP_DATAS/path u=$(date +%u) if [ ${u} -eq 1 ] ; then dateQ=`date --date='-3 day' +'%Y%m%d_%H%m'` else dateQ=`date --date='-1 day' +'%Y%m%d_%H%m'` fi tar xvf filename_"dateQ".tar.Z > error: > …

Member Avatar for PriteshP23
0
695
Member Avatar for Ritesh_4

Hello I have a Java Agent which I need to maintain (dev was done by someone else), with the following code samples extracted: String type = (String) types.nextElement(); DemByDate dd = (DemByDate) client.typeDemande.get(type); Vector v = (Vector) dd.demandes; Calendar calendar = Calendar.getInstance(); calendar.set(dd.d2.getYear(), dd.d2.getMonth(), dd.d2.getDate()); int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); dd.d2 …

Member Avatar for Ritesh_4
0
3K
Member Avatar for MMadhavi

how to insert date in table by using datepicker jquery? my jquery code is as: <script language="JavaScript" type="text/javascript"> $(function() { $( "#date" ).datepicker(); }); </script> in html <tr colspan="2"> <td valign="top" align="left"> Date<font color="red">*</font></td> <td valign="top" align="left"> <input type="text" id="date" name="date" value="" readonly="readonly" autocomplete="off" size="20"> </td></tr>

Member Avatar for MMadhavi
0
2K
Member Avatar for mavtcr

Friends please help me in FORMATTING DATE I have a Form with three text boxes 1.txtNo- Data type-Number 2.txtName-Data type-Text 3.txtDob-Data type -Date format dd/MM/yyyy two buttons one for adding and the other for viewing Using visual data manager I have created a database-Members with table-List having the following Fields …

Member Avatar for mavtcr
0
292
Member Avatar for mavtcr
Member Avatar for G_Waddell
0
959
Member Avatar for jamojo

Hello Everyone, I am trying to compute the subscription next due date. For example, these are the subscription dates: 1/28/13 1/29/13 1/30/13 1/31/13 When I used the php function strtotime( "+1 month", <date> ) the next month due date will be: 1/28/13 due date is 2/28/13 1/29/13 due date is …

Member Avatar for jamojo
0
2K
Member Avatar for urbanthistleuk

Good Morning, I am after some help, I am still fairly new to php development so apologies if this one has been answered before, I have been tasked to build an email migration tracker that automates emails, this part I think I have covered, one part I am not sure …

Member Avatar for urbanthistleuk
0
213
Member Avatar for lelemkop

Hello to all. I have a problem I can not solve. I have a table where there is a date field (datatime) where it goes automatically inserted the date and time of insertion. So 2013-09-02 12:00:00 AM. For me, this field is essential. Now I wanted to make a search …

Member Avatar for lelemkop
0
228
Member Avatar for crag0

Forgive me if this is something obvious or a simple question. I am having issues with my date field when loading data into my database. I am having it load using a python script using the below command and once complete the date is 0000-00-00. the file I am loading …

Member Avatar for crag0
0
226

The End.