dwhoover Posted September 17, 2005 Share Posted September 17, 2005 I'm trying to change the date format displayed on the Delivery Information and subsequent pages. It is currently "2005-09-19"...I would like it to read "09-19-2005". Can anyone share a fix for this? Thanks! :thumbsup: Quote osCommerce MS2 SPPC incl. Specials By Category, Prices By Category Vendors, Easy Populate, UPS XML, USPS Methods Link to comment Share on other sites More sharing options...
Jan Zonjee Posted September 17, 2005 Share Posted September 17, 2005 I'm trying to change the date format displayed on the Delivery Information and subsequent pages. It is currently "2005-09-19"...I would like it to read "09-19-2005". Actually, directions for things like that are already in the catalog/includes/modules/shipping/upsxml.php file (around line 250): // instead of just adding the expected delivery date as ", yyyy-mm-dd" // you might like to change this to your own liking for example by commenting the // three lines above this and uncommenting/changing the next: // START doing things differently In this case you would have to simplify the given example to (untested): if (isset($this->servicesTimeintransit[$type])) { $eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]); $eta_arrival_date = $eta_array[2]."-".$eta_array[1]."-".$eta_array[0]; $_type = $_type . ", " . $eta_arrival_date; } Quote Link to comment Share on other sites More sharing options...
dwhoover Posted September 22, 2005 Author Share Posted September 22, 2005 JanZ: Sorry about the duplicate post. I'm just getting used to posting and replies! Thanks for the info, and yes, I should have RTFM (or, in this case, RTFC). Cheers! Actually, directions for things like that are already in the catalog/includes/modules/shipping/upsxml.php file (around line 250): ?// instead of just adding the expected delivery date as ", yyyy-mm-dd" ?// you might like to change this to your own liking for example by commenting the ?// three lines above this and uncommenting/changing the next: ?// START doing things differently In this case you would have to simplify the given example to (untested): ? ? if (isset($this->servicesTimeintransit[$type])) { ? ? $eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]); ? ? $eta_arrival_date = $eta_array[2]."-".$eta_array[1]."-".$eta_array[0]; ? ?$_type = $_type . ", " . $eta_arrival_date; ? ?} <{POST_SNAPBACK}> Quote osCommerce MS2 SPPC incl. Specials By Category, Prices By Category Vendors, Easy Populate, UPS XML, USPS Methods Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.