|
Is your original line with the CDate() still in there though, even if before this? Try deleting it (or REM'ing it out) and see if that helps...
Fred
|
|
|
|
|
Fred,
If I manually pass in a string (for testing) then the CDate is not taking effect and the problem still happens... I've worked around this with a character replace on the receiving end to convert the date back to what I want, so It's not a real problem. It's just stupid things like this niggle me.
|
|
|
|
|
Hi,
Try this using Dateserial(yyyy,mm,dd). This may solve your problem
Regards,
Manowj
|
|
|
|
|
Hello Everyone,
I am trying to disable horizontal scroll but keep vertical. I am sure I did this a couple years ago with javascript but cant remember how. Would be greatful if anyone could help.
thanks
Nicky
|
|
|
|
|
This should do it:
[CSS]
<style type="text/css">
<!--
html, body{
overflow-x:hidden;
}
-->
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Hi,
Can anyone give me some pointers on the best way of setting up a mirror website? (On Windows platform.) Tried Google but maybe I'm not asking the right question...
cheers
Fred
|
|
|
|
|
Define Mirror..
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Well.. we have a website, vital to our business. If it goes down for any reason we want to be able to point our clients to another url (on another server) which has a mirror of our website on it. The site is written in asp.net with a mysql database.
Obviously I can set this up manually and take regular backups and copy them over, but there must be some way of automating all this...
cheers
Fred
|
|
|
|
|
Create a script that simply copies the data over to the other servers FTP directory (actually it is safer for the redundancy server to call what it needs).
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
And if you're using SQL Server this has built in replication functions for the data.....if you've got any data, you didn't say
|
|
|
|
|
Replicating databases is always very messy. I have normally went for a system where important updates (like personal details) are automatically added straight away to redundancy servers.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Thanks Brad - yes I'm actually not too concerned about the database (mySQl as it happens) as, as you say, this can be updated in real time anyway. But the CMS of the site also allows admin users to upload images and other files (pdf and doc) for public view and download, and somehow I want to get these over to the mirror server too... further trouble is I will prob only have ftp access to the mirror (as opposed to full control/access over the "main" server.
cheers
Fred
|
|
|
|
|
Hi all,
I am creating an application in Visual Studion 2005 (Asp.Net )and the language used is C#.Net.It's a Web Based Application .I put a TreeView Control in one my page.But in TreeView Control ,I need to add one more column means ,Its looks like
+ First 2
- Second 3
+ Third
+ Fourth
+ Fifth
+ Seventh 4
The heirarchical list shows the name of some topics inside a book and the right sided number shows the page number.The page number will be a link.How can I create a TreeStructure like this.Or please tell me an alternate solution for this..
Thanks In advance,
Jeeva
|
|
|
|
|
Can anyone tell me how to clear the Cache.For example: if I type the username and next time i use the other name. These name are stored as Cache in the textbox; it shows the previous datas that i have typed. Can u tell me How to clear those Cache.
Regards,
LEE
|
|
|
|
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
Read More ~
So, You Don't Want To Cache, Huh?
If you wanna do manually then just delete "history, cookies, form info". Internet Options -> Delete "Broswing History"
Hope it helps.
|
|
|
|
|
HTML Goodies.... the Ultimate resource.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi there,
I want to get difference between two times in php. As for example, 13:31:00 - 05:25:00 = 08:06:00.
Can you suggest me the way to solve this problem??
Thank You in advance.
Waiting for your reply.
|
|
|
|
|
YES, see Chris, we need a PHP forum!!!
The best way to do that is to create a single number, subtract them and then create the new number. Once you have this use substr to re-create the format,
<?php
$time1 = '13:31:00';
$time2 = '05:25:00';
$time1 = str_replace(':', '', $time1);
$time2 = str_replace(':', '', $time2);
$difference = $time1 - $time2;
$orangised_difference['hours'] = substr(0,1, $diffrence);
$orangised_difference['minutes'] = substr(2,3, $diffrence);
$orangised_difference['seconds'] = substr(4,5, $diffrence);
$final_difference = $orangised_difference['hours'] . ':' . $orangised_difference['minutes'] . ':' . $orangised_difference['seconds'];
?>
(note, this is very rough cut example.)
?>
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Hi Bradml ,
Thank you for your reply , I tried to apply your code but I got some problem in it.
If my time1 = 06:08:21 and time2 = 05:56:28then I got difference = 5193
Now according to the code I got following output:
orangised_difference['hours'] = 5
orangised_difference['minutes'] = 93
orangised_difference['seconds'] =
final_difference = 5:93:
It's not the perfact. Its giving proper output of your given inputs after changing substr syntax.
substr($difference, 0, 1);
substr($difference, 2, 3);
substr($difference, 4, 5);
Can you please suggest me that if I give my inputs then how I can get the proper result???
|
|
|
|
|
What is it that you are using the this function for?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I am using this for finding employee's working time.
For example, Mr Xyz checkIn at 05:00:00 AM and checkOut at 06:23:00 AM then I should able to count proper working time of him.
|
|
|
|
|
ok then maybe best way to do it is to reduce time into seconds and calculate like that?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
What I gave you is just an example. it may be that the employee come at night and check out at next day noon then converting time into second and after calculate it in the hours will be ok???
|
|
|
|
|
well check to see if the time extends into the next day, then if it does calculate from sign in to midnight and from midnight to sign out.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
see I am telling you all things,
I have to create such application like:
-> When the user checkIn first time in a day, I have to take the date in date field and time in time field.
-> When he checkOut then I have to take the time and calculate working hours.
-> The same user can not do checkIn more then once in a single day.
Hope you got the clear idea of this small application.
|
|
|
|