function dates_display($date_format1, $date_format2, $date_str) { $base_struc = preg_split( '/[-\.\:\/ ]/', $date_format1); $date_str_parts = preg_split( '/[-\.\:\/ ]/', $date_str ); // print_r( $base_struc ); echo "\n"; // for testing // print_r( $date_str_parts ); echo "\n"; // for testing $date_elements = array(); $p_keys = array_keys( $base_struc ); foreach ( $p_keys as $p_key ) { if ( !empty( $date_str_parts[$p_key] )) { $date_elements[$base_struc[$p_key]] = $date_str_parts[$p_key]; } else return false; } // print_r($date_elements); // for testing if (array_key_exists('M', $date_elements)) { $Mtom=array( "Jan"=>"01", "Feb"=>"02", "Mar"=>"03", "Apr"=>"04", "May"=>"05", "Jun"=>"06", "Jul"=>"07", "Aug"=>"08", "Sep"=>"09", "Oct"=>"10", "Nov"=>"11", "Dec"=>"12", ); $date_elements['m']=$Mtom[$date_elements['M']]; } // print_r($date_elements); // for testing $dummy_ts = mktime( $date_elements['H'], $date_elements['i'], $date_elements['s'], $date_elements['m'], $date_elements['d'], $date_elements['Y'] ); return date( $date_format2, $dummy_ts ); } //Returning Last Day of any given month to help in exh. period and resolving the MMYY PO number equivelent. // Take an integer month and year and returns the date of the last day in MM/DD/YY format function lastDay($month, $year){ $lastDay; $longMonths = array(1,3,5,7,8,10,12); // Months that end in 31 $shortMonths = array(4,6,9,11); // Months that end in 30 if(in_array($month,$longMonths)) $lastDay=31; else if(in_array($month, $shortMonths)) $lastDay=30; else if($month==2){ // February, check for leap year if(date('L',mktime(0,0,0,1,1,$year))==1 ) $lastDay = 29; else $lastDay =28; } return date('Y-m-d',mktime(0,0,0,$month,$lastDay,$year)) . " 23:59:59"; } function firstDay($month, $year){ return date('Y-m-d',mktime(0,0,0,$month,01,$year)) . " 00:00:00"; } //Status Code Resolved function StatusCode_Resolved($sdcode) { $SDNames = array('SD1','SD2','SD3','SD4','SD5','SD16','SD7'); $SDLabels = array('Draft Order','Order Posted','Order Approved','Lab Recieved','Materials Delivered','Closed','Voided'); for($i = 0;$i < count($SDNames);$i++) { if($sdcode==$SDNames[$i]){ return $SDLabels[$i]; } else { return "Not Found"; } } } function ShortenText($text,$chars) { if(strlen($text) > ($chars -3)){ $text = $text." "; $text = substr($text,0,$chars); $text = substr($text,0,strrpos($text,' ')); $text = $text."..."; } return $text; } ?>
Wed November 30, 2022 - Watching The Game
Tue November 29, 2022 - Fly A Kite
Mon November 28, 2022 - Forgiveness
Fri November 25, 2022 - Black Friday
Thu November 24, 2022 - Happy Thanksgiving
Wed November 23, 2022 - Wash The Car
Tue November 22, 2022 - Photo Album Stories
Mon November 21, 2022 - Magic Dog
Fri November 18, 2022 - Tippy Toes
Thu November 17, 2022 - Enjoying Life
Tue November 15, 2022 - Mrs. Fix-It
Mon November 14, 2022 - Alien Cookies
Fri November 11, 2022 - Dinner Is Served
Thu November 10, 2022 - Ears Of A Horse
Wed November 9, 2022 - The Little Things
Mon November 7, 2022 - Practice
Fri November 4, 2022 - Comic Strip Ideas
Thu November 3, 2022 - Beautiful Pumpkin
Wed November 2, 2022 - Car Warranty
Tue November 1, 2022 - Dinner For Two
Mon October 31, 2022 - Halloween 2022
Fri October 28, 2022 - Play Outside
Thu October 27, 2022 - Pile Of Leaves
Wed October 26, 2022 - Jenny 867-5306
Mon October 24, 2022 - Broken Motivation
Fri October 21, 2022 - Returns
Thu October 20, 2022 - Need For Speed
Wed October 19, 2022 - Birthday For Uncle Ted
Tue October 18, 2022 - Outside The Box
Mon October 17, 2022 - Leaf Season
Thu October 13, 2022 - Food Critic
Wed October 12, 2022 - Lemonade
Tue October 11, 2022 - Mona Lisa
Mon October 10, 2022 - Uncle Jax
Thu October 6, 2022 - Grown Women
Wed October 5, 2022 - Super Power
Tue October 4, 2022 - Stewardess
Fri September 30, 2022 - The Find A Turtle Redux
Thu September 29, 2022 - Anniversary Surprise
Wed September 28, 2022 - Family History Chainsaw
Tue September 27, 2022 - The News
Mon September 26, 2022 - Juggling Act
Fri September 23, 2022 - Ben Franklin
Thu September 22, 2022 - Fire Drill
Wed September 21, 2022 - Bored
Tue September 20, 2022 - Good Nights Sleep
Mon September 19, 2022 - Cuckoo Clock
Fri September 16, 2022 - Fishing With Grandpa
Thu September 15, 2022 - Remember The Alamo
Wed September 14, 2022 - Hide-N-Seek
Tue September 13, 2022 - God Is Smarter
Mon September 12, 2022 - Selective Amnesia
Fri September 9, 2022 - Flying Cars
Thu September 8, 2022 - DMV Gremlins
Wed September 7, 2022 - Chemistry At Work
Tue September 6, 2022 - Bowling
Mon September 5, 2022 - Options
Fri September 2, 2022 - Shark Attack
Thu September 1, 2022 - Dancing Lessons
Wed August 31, 2022 - The Attic
Tue August 30, 2022 - Grandpa's Comicbooks
Mon August 29, 2022 - Clean Teeth
Fri August 26, 2022 - Empty Wallet
Thu August 25, 2022 - The Checkup
Wed August 24, 2022 - Small Order
Tue August 23, 2022 - Cookie Productivity
Mon August 22, 2022 - Curriculum
Fri August 19, 2022 - Journal Writing
Thu August 18, 2022 - Perspective
Wed August 17, 2022 - Washing Dishes
Tue August 16, 2022 - At The Movies
Mon August 15, 2022 - Help From Above
Thu August 11, 2022 - Cookie Thief
Wed August 10, 2022 - Bedtime Stories
Tue August 9, 2022 - Family Workouts
Mon August 8, 2022 - Genius At Work
Fri August 5, 2022 - The Time Machine
Thu August 4, 2022 - Granny's Secret Ingredient
Wed August 3, 2022 - Little Angels At Work
Tue August 2, 2022 - The Sounds of Children
Mon August 1, 2022 - Imagination Equal Chaos
Fri July 29, 2022 - A Superhero's Job
Thu July 28, 2022 - A Walk In The Park/Battlefield
Wed July 27, 2022 - Suitcase Of Records
Tue July 26, 2022 - Memories Of Baked Bread
Mon July 25, 2022 - Family Reunion At The Cemetery
Fri July 22, 2022 - Hard Names
Thu July 21, 2022 - Writing My Family History
Wed July 20, 2022 - Alway Got Your Back
Tue July 19, 2022 - Granny's Lamp
Mon July 18, 2022 - Bumper Stickers
Fri July 15, 2022 - Vacation Destinations
Thu July 14, 2022 - Pizza Night
Wed July 13, 2022 - Great-Grandpa's Eyes
Tue July 12, 2022 - Jenny At The Court House
Mon July 11, 2022 - Boiled Water
Thu July 7, 2022 - They Have Your Back
Wed July 6, 2022 - Will's Fishing Hat
Mon July 4, 2022 - Fourth of July
Fri July 1, 2022 - Digging Up Dead People