o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Where does the date in DATE() come from -

I have an app that uses the date function, but I need to know where VB gets this date from? Is it from the local computer or the SQL server or the primary domain controller? The reason why I am asking this is because I am using the date as part of a time clock system (ie, clocking of hours of employees)

Any suggestions would be greatly appreciated.

 

How to retrieve the privious date for the given date -
I need to find the previous date for the given date, i do date(now) - 1, this case works except the given date is 01. can any one plz help me to solve this issue. Thanks in advance


An easy question for All VB Masters -
Hi there, i need some help with this problem.... SELECT * FROM [Date] WHERE (date.date = #datevar#) AND (Date.RoomId = Roomvar) datevar = date() do... make date create SQL if record count <> 3 then add date to list end if loop until (365 dates checked)


Date TextBox -
Hi there, I have got a textbox on my web page that contains a date, i want to be able to change the date when different keys are pressed, for example if the user presses 't' then the date changes to the current date. The initial date is in this format dd/mm/yy. How do you take th


Need help tocheck date -
I have a DatetimePicker on my form where I want the user to pick a date from but the date should only be a date of Saturday. The datetimepicker's property is set to long date but I need a code to make sure that the date the user has selected is a Saturday date so I would be pleased if


questin about date -
There is a term called Date... You have to set the properties for Date and code looks like this "Date = Date" I can't figure out how to let the user to override the date once it defaults in. DOes anyone know how to do this?


Default date of datepicker. -
How to set the defaut date shown in date-picker to the current system date? Right now it shows the date on which the control was created..


Date question !!! -
Hello, I wonder if there is a way to find out the input date is before or after a certain date.... I have a textbox1 in date format. After the user entered the date in to the textbox1, I'd like to compare it to see if it's before or after a cretain date... Thanks....


Maintaining current date -
I know you can get the current date by using: Text1.Text = Date However, I'm going to be using this to automatically place the date in a Invoice form. This form may be left running on the computer over night and so I want to be able to have the date automatically roll over to the ne


VB6 - Validating Date Fields -
Dev Environment: VB6 Code on MS Access2000 DB on win2K I have two Date fields on my MS Access Form ie Date A and Date B.At any given time ,Date B must be greater than Date A.Date A is entered first then Date B follows.These dates are entered using a Calendar button with a command to


Getting Date in ASP -
Ok this is what i need to do. I need to read the system date, and from that i need to put the date into ASP so that the date can be macthed up with the same date in the Access DB. Can someone tell me how to do this, i am totally new to ASP and really need your help. Please provide


"Next Date" method -
Heres the background: The user gets some data (from ms sql db) to a DataGrid by entering a Date. Then there is a button, "Next Date" that will find the next date in the row and bring up that data. What I am doing is this: I have a seperate dataTable will all the dates


how to do this search -
I have a table which has 3 fields: ID, Name, Date ID is the key. Same Name may have different Date information. Now I want to know what the latest Date is in this table and what Names are with date. How can I write some simple SQL? ONe method is using Select ... Order by Date, then


Help on Date/Time Picker.. -
Hi, I have 3 textboxes and a date/time picker. I need help on something, basically there is a date in the first textbox and the second and third textboxes are empty. When the user selects a date it gets inserted into the second textbox, and in the third textbox there is a date 7day


Help on: Access 97, is there anyway to have just a Date datatype instead of Date/Time -
Please reply as soon as you can, hope someone has the solution. Good morning, is there anyway to patch or installe a plug-in or something into Access 97 so that it can have a Date only data type and not Date/Time. I need only the Date because if I use Date/Time and export a recordse


date to str then str to date [RSLVD] -
ok... I use now() with format to get 100204 for current date.. then that is shoved in the name of a file... another program reads the file and uses the name to shove into access date field... issue is.. when I try to convert the date it makes it wrong.. it must think its a julian


Default value for date -
HI I am uisng VB 6.0. I connecting my VB application to SQL server. The issue I have is the default date i get is 1900:01:01 00:00:00.000. If I dont add any values for the date textbox in VB then in SQL i get the above date. Is there a way I have nothing or null when the date is


Compare the date from database to the date of the PC -
Hi In my vb form, there is a text box for date of expiry. I used SQL command to get the date display at the text box. But, I wanted to compare the date displayed with the current date, date at the PC. If the date displayed is less than one month from the current data, an error messa


Where does the date in DATE() come from -
I have an app that uses the date function, but I need to know where VB gets this date from? Is it from the local computer or the SQL server or the primary domain controller? The reason why I am asking this is because I am using the date as part of a time clock system (ie, clocking of


Configuring datevalues -
Hi I have a lbl on my form which shows todays date but I need to configure this date.... I need the date to register as yesterdays date until 06.30am........ I know I cound probably use dateadd etc but I need something that will deduct the date until 06.30am and then show to


problems with Date function -
If I do this in ASP response.write Date I get the date returned. If i do this response.write Date-1 I get the date 1 day before. If I do thedate=date+3, this works but if I hard code a date or in my case I'm using request.form to send a date from a database to another asp page to


insert: what' s wrong in this code -
I have 2 tables with the same name on different location table name: date table field :date When I'm on the first database I do this request Look at this this code doesn't work INSERT INTO date (date) in "d:\pact\database2.mdb" SELECT date.date AS [date] FROM [date


parameter (Date) -
hi everybody.. i'm used an access and Crystal Report 8.5. datatype for Date in Access=Date/Time In Crystal Report, i've set parameter for date.Of course the format is Date and Time. {dte_claiming.date} in {?Date} to {?Date To} How if i just want to show date only (Dont wan


current system date and time -
I have two date fields in my code: Dim dateOfIssue As Date Dim dateOfReturn As Date when i printed the value of date, it gave 12:00:00 AM. I want to get the date in the format MM-DD-yy. Plz help me. I want to add n no of days to this date to get the dateOfReturn. Plz let me


[2005] Date calculation -
Based on a given date, how would i determine the ending date? For example: The current date is 15/01/2008 (day, month, year), how would i get the current date + 24 months result ? (15/01/2010) Thanks...


Date subtracting -
I need to search a listview for a date that's exactly six months before the current date. My question is, If the date format is 'DD-MM-YY" how would one subract the six months to see if the date meets the criteria ? Cheers!


Is this the largest Excel formula you have ever seen -
I produced this formula for a pointless Excel assignment I'm doing: Code: =IF(MOD(ROW(),2)=0,IF(AND(WEEKDAY(DATE($R$3,(ROW()+1-7)/2,1))<COLUMN()-1,COLUMN()-WEEKDAY(DATE($R$3,(ROW()+1-7)/2,1))-1<=DAY(DATE(YEAR(DATE($R$3,(ROW()+1-7)/2,1)),MONTH(DATE($R$3,(ROW()+1-7)/2,1))+1,D


Get the Date -
Dear All, How to get the Starting and Ending Date for this conditions 1.CurrentWeek(WeekstartingDate , EndingDate with respect to todaysDate) 2.MonthStart Date and End Date with Respect to Todays date Thanks in Advance Dana


dates in an Access database -
I have a date in my database set as a short date which is not required and not indexed. I am using ADO and the date is entered via a text box on my screen. If the date is not entered at all everything is fine when the record is saved. If it is entered and the next time that record is


¤ date aging ¤ -=RESOLVED=- -
do you have a code in vb6.0 about the aging of dates? example : date 1--> 01/01/01 date 2 --> 03/05/01 how will i know how many days laps from date 1 to date 2 thanks in advance


Date only from a date/time -
I have a date in my Access database that stores the date/time. However I need to get just the date. The reason is, I am doing a compare with another date, and it messes up when the time is on there. i.e. if i do 9/19/2002 <= 9/19/2002 3:34:43 PM it returns false when i want it


format of Date() -
Hi I used the following code to change the system date to a string like "000923" for 23rd,sept 2000, however when I try this code on another computer gives me "002309". What's the cause of it? How can I modify my code to adapt different types of system date? Thanks!


Default Date Format -
Hi: Im buliding a web based application in VB .NET. i have 2 text boxes; one Date From and the other Date To. I want to make the current date as the default for the Date To. How can i do that? Thanks


To Get the next date -
Dear All, I have a date. I want that if I click a button, I should get the next date to the mentioned date. Similarly by clicking the other button, i shpuld get the previous date. Plz help and guide.


Calculate Dates Based On Variable Data -
I need to calculate two dates based on variable data. The first one is easy. All I need to do is add 180 days to whatever date is in a textbox and that become "The Filing Date" The second one is not so easy. The Due Date equals 120 days from The Filing Date UNLESS t


Crystal Reports Question!! -
HI!! I'm using CR 7 with VB 6 and I want to design a report with the structure as follows: From Date '20/04/02' to Date '23/04/02' ----------------------- Account : 1 Previous Acumm = 100 (Assuming 100 = sum of items with date < dateFrom) item 1 100 item 2 100


Windows Messenger and Human Rights -
If your computer date is not set to correct date Windows Messenger (XP) (or maybe MSN messenger, I dont know) wont work (encryption is somehow based on current date...) I think its people right to put their computer date to any date they like and if someone pays for XP its her right t


Insert date in MySQL -
I am trying to insert a date into a mysql table but everytime I attempt it the date field is always empty. The field is of Date type and the date in code is in European format dd/mm/yyyy. Does the date have to be formatted in any particualr way from vb.net.


selecting date values using vb6 -
I'm attempting to use 2 masked edit boxes to input a date range (using the format dd/mm/yy) for searching an access database. my app generates a query similar to the one below: - select * from onsites where date >= #02/04/00# and date <= #30/04/00# order by date; (onsites


[02/03] Mapped Drives -
I have a program that looks at a certain directory and will run a report on files by looking at their last write time or modified date. It pretty much counts files based on a date or date range. It just checks if the modified date is equal to the date that is in the date range or dat


between two dates -
I have a database set up with a start date and a completed date, what i want to do is set a sql statement that will return me all the records that todays date falls between their start date and completed date. aka start date < todays date < completed date