Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added date type to metaform and template
[wfpl.git]
/
format.php
diff --git
a/format.php
b/format.php
index
e968158
..
1586ff0
100644
(file)
--- a/
format.php
+++ b/
format.php
@@
-150,6
+150,11
@@
function format_dollars($str) {
return format_money($str, false);
}
return format_money($str, false);
}
+# date is edited as mm/dd/yyyy but stored as yyyy-mm-dd
+function format_mdy_to_ymd($str) {
+ return mdy_to_ymd(format_oneline($str));
+}
+
function format_phone($str) {
$str = ereg_replace('[^0-9]', '', $str);
$str = ereg_replace('^1*', '', $str);
function format_phone($str) {
$str = ereg_replace('[^0-9]', '', $str);
$str = ereg_replace('^1*', '', $str);