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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

verify unix date?

Status
Not open for further replies.

Ciscoserret

Programmer
Apr 11, 2001
3
US
Is there a way to verify that a unix date stored in a database is valid, before using date() on it to covert it to an english readable date? I've inherited a project that has a database that has garbage in some of the date fields, and date($englishformat, $theunixdate) generates an error if the unix date isn't valid.
 
check out my faq: faq434-1069

You use this same concept to validate your timestamps. If you have any questions or need help, just let me know.

Chad. ICQ: 54380631
online.dll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top