Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealign with time

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
What is the best type of field to deal with time.... I just want time not date or anything else....

[conehead]
 
Datetime. The date will/should be 1/1/1900.
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
ok here is a problem... I have used datetime... I have hardcoded in a time of 9:00:00 AM and in an asp I have a conditional statement:

if (String(field) == "9:00:00 AM") {

but it is not executing this condition as if they are not the same... is something being doen that I can not see? When I repsponse.write the field it come up 9:00:00 AM

?????

[conehead]
 
That time string should be like this 1900-01-01 9:00:00.000




Good Luck
Gopala Krishna Kakani

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top