Jump to content

Entering empty datetime fields and time fields


pers0n
 Share

Recommended Posts

I need to have events, they can have startDate, startTime, endDate, endTime.

But but not all events will have a startTime, endDate, endTime.

So I made those 4 fields seperate.

But when I leave those 3 that arent always used, it puts in "12/31/1969" for the date or "07:00" for the time if they are left empty.

I am checking for null, but its not saying its null, but I left the fields empty.

:(

Link to comment
Share on other sites

The date you're experiencing is when unix time is counted from (you'd have to google it to find out why - I can't remember) so a value of zero means zero seconds since that date.

Strange but true.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...