Jump to content

Calculations, Interest, Diff between two days


aarontbarksdale

Recommended Posts

Right, the issue there is that the date in a database is a string value, and functions like getdate work with Unix timestamps. The time and strtotime functions return Unix timestamps. It's fine to remove that one line and put the function call inside date, but in my code I converted everything to a timestamp and only used those, and only use the date function to format it when it needs to be printed. It's much more efficient to work with Unix timestamps instead of string dates.

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
×
×
  • Create New...