Daniel
Calculate time difference between dates
Recently I needed some code to calculate a users age based on their birthday. There are many different functions that are already created out there that I could have used, but instead I wrote this piece of code. It uses PHP 5 DateTime class to return an array of information pertaining to how old a [...]
By: Daniel

Time/Date | Added: 01-20-2010 | No Comments »
Remove whitespace from string
Remove whitespace from the beginning, middle and end of a string.
By: Daniel

Basics, Miscellaneous | Added: 10-28-2009 | 1 Comment »
Get date by position (ie. third Wednesday of January)
Allows you to convert: "third Wednesday of January" to the actual date value.
By: Daniel

Time/Date | Added: 05-06-2009 | 6 Comments »
Sanitize copy/paste text from word
Sanitize content copied and pasted from Microsoft Word for insertion into database.
By: Daniel

Basics | Added: 03-25-2009 | 1 Comment »
Calculate a percentage
Function for simplifying percentage calculations given a numerator and denominator
By: Daniel

Math | Added: 03-24-2009 | No Comments »
Add suffix to a number
Add st, nd, rd and th suffix to numbers dynamically
By: Daniel

Math | Added: 03-24-2009 | 2 Comments »
Zero fill a number
Add zeros to the beginning of a number to make output number a certain length.
By: Daniel

Math | Added: 03-16-2009 | 11 Comments »
Notepad++ Function List plugin tip2
Adding enhanced functionality to Notepad++ with the Function List plugin.
By: Daniel

Editors | Added: 12-22-2008 | 4 Comments »
Notepad++ Function List plugin tip
Adding enhanced functionality to Notepad++ with the Function List plugin.
By: Daniel

Editors | Added: 12-22-2008 | 20 Comments »
Date Check/Validation
A date checking/validation function to make sure your date is correct format.
By: Daniel

Time/Date | Added: 10-16-2008 | No Comments »
geovisitors