Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6073225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:14:52+00:00 2026-05-23T10:14:52+00:00

I have a table which has starttime field.this field of type DateTime and I

  • 0

I have a table which has starttime field.this field of type DateTime and I configure it to (Hour to Minute) in Specials, because I wanna to store only time in this format.

ex:10:45

Now in my code :
I have the following problem:

 prd.StartTime = DateTime.Parse(record[1]);//.ToString("H:m"));


After Tracing: `StartTime = 6/22/2011 10:45:00 AM`

When I insert a record in this table, I get the following exception:

IBM.Data.Informix.IfxException: ERROR [22008] [Informix .NET provider][Informix]
Non-numeric character in datetime or interval.

EDIT:
When I make default value enabled to this field and try to insert without starttime, and select the value I found it was 17:48, and when I change the Special to Year again the default value is 2011-06-22 17:48:00.


EDIT2:

I make StartTime property as string rather than DateTime, and succeed to insert. Does this affect the validity of this field later.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:14:53+00:00Added an answer on May 23, 2026 at 10:14 am

    DateTime.Parse("10:45") is perfectly valid. However, it will produce an instance of DateTime containing today’s date together with the time that you have parsed.

    But the error you’re getting is probably caused by the fact that the database you’re using wants to store the date as a number.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table which has field with data type as DATETIME. I persist
I have a table which has a column called Direct of type char(1). It's
I have a table which has an IDENTITY field and a VARBINARY(MAX) field in
I have a table which has a foreign key referencing itself. This would be
I have a table which has a button to Add Rows. This button adds
I have a table which has approximately 140 columns. The data for this table
Ok, I have this first table which has, among other things: table 1: id
I have a table which has fields date_of_notification, date_of_loss. Both are of type time-stamp.
I have a table which has event-details. New records will be inserted to this
I have a table which has several one to many relationships with other tables.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.