341 Topics

Member Avatar for
Member Avatar for divyakrishnan

Hi.. How to get the difference between two dates using C#.NET web application in form of days? If anybody knows plz help me..Itz very urgent.

Member Avatar for AMBIgainathan
0
3K
Member Avatar for Sizwe_1
Member Avatar for JorgeM
0
215
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 mnewsome

Looking for options for a more current BIOS for a retired Toshiba A40. Have been cautioned that this could be very destructive. Guidance sought

Member Avatar for Xlphos
0
201
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 amit.chaudhari.71

dear friends m using strtotime () function to compare two dates , but it is not working for the date greater then '19-jan-2038'.my os is win 7 32 bit and php 5.2 and apache 2.2.plz if any body having any solution , kindly share it

Member Avatar for amit.chaudhari.71
0
390
Member Avatar for Ritesh_4

Hello I have a web form, whereby I want to allow users to only input dates in the format DD/MM/YYYY. I've tried with the following code to show an error message if the date is not valid, however if I add something like 5/5/5, it still passes is as a …

0
106
Member Avatar for silverdust

I'm trying to set a time limit of like 2 mins after time of a click event. How can I achieve this? Most of the countdown timers I see all over the internet are countdowns to dates like Aug 23, 2015

Member Avatar for silverdust
0
212
Member Avatar for TrustyTony

I did code for challenge that I saw posted for C# by deceptikon: http://www.daniweb.com/software-development/csharp/threads/479304/coding-challenge-string-to-date Here it is. Of course normally the code would be without prints and put in function, but this is enough for now for me. There could also be normalization from '/' separated form not producing ambiguous …

1
267
Member Avatar for patk570

I have 2 input fields that when a user inputs the date in say mm-dd-yyyy format, i would like to have it automatically change to yyyy-mm-dd (ISO 8601 Date Format) the input fields are very simple: <div class="form-group"> <label for="purchase_date">Purchase Date <font size="-3">(Year-MM-DD) format</font></label> <input type="text" name="purchase_date" class="form-control" placeholder="Purchase Date"> …

0
136
Member Avatar for Varunkrishna

Hi all I have a json format which has two objects Created_date and Reply_date. Created_date has a date on which a message is created and the Reply_date tells when the user has replied to that messge. So I am getting the Created_date as follows var createDate = new Date(Created_date); var …

Member Avatar for Varunkrishna
0
181
Member Avatar for chris.immanuel

Hi Guys, I need help with inserting date from HTML <input type="date"/> into oracle DB It seems that i need to make some kind of adjustment with oracle date. please help me...

0
89
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 krunal1986

Hello, I need to display last released version date in my application. I am displaying last build/compiled date as version date with below code. DateTime buildDate = new FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime; lbldate.Text = buildDate.Date.ToString("dd/MM/yyyy"); but if I update the live server with latest code other than today, then it is displaying the …

Member Avatar for pritaeas
0
298
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 Varunkrishna

Hi all I am writing a java program to display the dob of sportsperson, now I have use the java.util.Date to display the date on to the consloe. But since it is deprecated I wish to use some other method to get and display the date from the user. Here …

Member Avatar for jwenting
0
373
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 mukulnimker7751

Hi All, i am here with a problem in file handling in java. i need to search all the files on system with extention *.fdr. which are not less den one day old. then i need to convert the selected file to csv which is perfomed by a command in …

Member Avatar for JamesCherrill
0
367
Member Avatar for RascelleGrepo

Hello guys, I am on my revision of my thesis and I am actually stuck on this thing. My thesis is Online Requisition of Document and the panel told me that when the student submits his/her request, the expected date or tentative date release of document will automatically display or …

Member Avatar for cereal
0
649
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 vinodvinu

Hi there, I am using Libre Office Calc in my windows 8 PC. I need to maintain a calc sheet for tracking my home electricity meter reading. pLEASE LOOK THE IMAGE. FUNCTION OF CELL A2 = if c2 = "" then value = "" otherwise value = TODAY(). This will …

Member Avatar for gerbil
0
245
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 karthik.r

Hi how can i comvert the string type for ex : 10/12/2012(d/m/Y) to date .. it changes date to month and month to date.. my expected format is d/m/Y format only...

Member Avatar for pritaeas
0
82
Member Avatar for PriteshP23

Hello, I have one big XML file (600 MB - 850 MB) in format "**cells_yyyymmdd_hhmi.xml**" I would like to specify that everyday i will have new file with new date. So, *there should be general way to read it and cut it*. For exmaple, i have file of 7th January. …

Member Avatar for rubberman
0
254
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

The End.