473,657 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

any way to test this to see if this input really works?

I need to set up an entry field of 00:00 AM
medium date but they always want it to be AM.
So I tried this 99:00 >"AM";;_
yep it puts the data in the field defined as date time
and you get something like 09:10 AM
but is this really a stored time that you can calc on?
Don't know why they have to have it as AM only but that is what
they want.
I have no need for anything right now but I know in the future
they will want something. LOL


Jan 19 '07 #1
2 1284
"sparks" <js******@swbel l.netwrote
I need to set up an entry field of 00:00 AM
medium date but they always want it to be AM.
And "they" would be whom, the Time Police?
So I tried this 99:00 >"AM";;_
"Tried this" where, in what context?
yep it puts the data in the field defined as date time
and you get something like 09:10 AM
but is this really a stored time that you can calc on?
Depends on what you want -- it is a valid date/time. My guess is that if you
display it in a full date/time format, you may be a little surprised at the
date. It is not the way to store a quantity of time in hours and minutes...
date/time represents a point in time, not a quantity.
Don't know why they have to have it as AM only but that is what
they want.
I have no need for anything right now but I know in the future
they will want something.
And, as you close by indicating you have no question, I'm relieved, because
I couldn't puzzle out just what you were asking, much less what you were
describing. So, no question, no answer. Have a good day.

Larry
Jan 20 '07 #2
Well "they" had it as a short time but WHY do I have to type in AM
when everything we do on this is AM.

os I thought if I changed the short time from 99:00 >LL to
this 99:00\ >" AM";;_

that they would NOT have to put in all that work. They may do this 2-3
times a day.

then I thought well maybe this will no longer be a valid time. and if
someone in the future tried to do some datedif or something (for what
I have no idea) then it would just be a string and not a true
date/time.


On Sat, 20 Jan 2007 14:41:26 GMT, "Larry Linson"
<bo*****@localh ost.notwrote:
>"sparks" <js******@swbel l.netwrote
I need to set up an entry field of 00:00 AM
medium date but they always want it to be AM.

And "they" would be whom, the Time Police?
So I tried this 99:00 >"AM";;_

"Tried this" where, in what context?
yep it puts the data in the field defined as date time
and you get something like 09:10 AM
but is this really a stored time that you can calc on?

Depends on what you want -- it is a valid date/time. My guess is that if you
display it in a full date/time format, you may be a little surprised at the
date. It is not the way to store a quantity of time in hours and minutes...
date/time represents a point in time, not a quantity.
Don't know why they have to have it as AM only but that is what
they want.
I have no need for anything right now but I know in the future
they will want something.

And, as you close by indicating you have no question, I'm relieved, because
I couldn't puzzle out just what you were asking, much less what you were
describing. So, no question, no answer. Have a good day.

Larry
Jan 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3139
by: Jan Roland Eriksson | last post by:
Some more fine tuning and inclusion of last suggested text from regulars has been done to this test post #4 of the mFAQ. As usual, rip it up anywhere you feel that it's appropriate to do so. ===== Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26
0
2308
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the example source code can be downloaded here: http://www.blogitek.com/timhaughton/archives/files/User%20Interrogator%20And%20TDD.zip The article text is below. Not sure what it will do to the formatting when
3
2420
by: moondaddy | last post by:
I have a simple webform where a user can upload images by using an input element of type "file". In the a button's click event in the codebehind is this code which saves the file to the server. Everything works OK. My concern is how can I be sure the user is really uploading an image and not a file with some malicious code in it. Also, can someone tell me what my security concerns are here? Here's the html: <form id="Form1"...
35
2560
by: Cor | last post by:
Hallo, I have promised Jay B yesterday to do some tests. The subject was a string evaluation that Jon had send in. Jay B was in doubt what was better because there was a discussion in the C# newsgroup on 25 September. The regular expressions where in that newsgroup too involved. I told yesterday night, to Jay that I would test all 4 methods and the stupid method I was thinking of the first time that night when I saw Jon's
5
2390
by: Little | last post by:
I have this program and I need to work on the test portion, which tests if a Val is in the list. It returns false no matter what could you look at the part and see what might need to be done to fix it. It reads in the file and sorts out the files into the four different lists. F.txt int main 2 " " help
3
3971
by: jab3 | last post by:
Hello. I"m new to this group, and to JavaScript in general, so please forgive me if I breach local etiquette. I'm trying to implement some client-side 'dynamic' validation on a form. I'm having a couple of problems, which I'll try to describe. But this e-mail will only reproduce one of them, in a "short" example. What I'm generally doing is having each form entry contained in a div, which as a label, an input with some event handlers,...
8
3766
by: killkolor | last post by:
hi! I have a unittest framework that tests a single function that in turn works with files (takes input and outputs in the same file, no return values). In the unittest class I assign a member with all the names of my testfiles and a testdirectory. The tests call the function (which opens and writes to the file) and then opens the file to see if everything is in order. The problem now is that after each testrun I have to copy "fresh"...
176
8332
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write their own unit test framework, and then in a lab session see if I can get them to write their own. To give them an example I've created the following UTF class (with a simple test program following). I would welcome and suggestions on how anybody...
1
2829
by: mbarnhizer | last post by:
Hello All, Trying to figure out how to validate a series of questions on an online test. I am thinking that VB or Javascript is the best route, but your input may make a difference. The site i am working with is using .asp. Their are 30 multiple choice questions. Each will have have 3 or 4 checkboxes where the test taker will choose only 1 answer per question. Anybody have any ideas as to the best way to validate that each question has...
27
2542
by: brad | last post by:
Does anyone else feel that unittesting is too much work? Not in general, just the official unittest module for small to medium sized projects? It seems easier to write some quick methods that are used when needed rather than building a program with integrated unittesting. I see the value of it (the official unittest that is)... especially when there's a lot of source code. But this... if len(x) != y: sys.exit('...')
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.