kamalpreet Posted April 20, 2015 Share Posted April 20, 2015 Hello, I need a help to change date format from yy-mm-dd to dd-mm-yy in my dashboard. i already changed default date from back office to dd-mm-yy. i am working on prestashop 1.6.0.8 Link to comment Share on other sites More sharing options...
NemoPS Posted April 20, 2015 Share Posted April 20, 2015 Try localization, languages, hit english and see if you manage to change it there, you should Link to comment Share on other sites More sharing options...
kamalpreet Posted April 20, 2015 Author Share Posted April 20, 2015 Yes Sir i already tried that but its not changing date format... Link to comment Share on other sites More sharing options...
NemoPS Posted April 20, 2015 Share Posted April 20, 2015 Odd, does it change in the front office? Link to comment Share on other sites More sharing options...
kamalpreet Posted April 20, 2015 Author Share Posted April 20, 2015 Yes sir in my invoice pdf and other places its showing right date format but not in dashboard. Link to comment Share on other sites More sharing options...
NemoPS Posted April 22, 2015 Share Posted April 22, 2015 Ok, it seems like it's not supposed to be formatted Open up this themes\default\template\controllers\dashboard\helpers\view\ view.tpl Locate: <strong class="text-info" id="datepicker-from-info">{$date_from|escape}</strong> and <strong class="text-info" id="datepicker-to-info">{$date_to|escape}</strong> use, for example {dateFormat date=$date_from} Link to comment Share on other sites More sharing options...
kamalpreet Posted April 22, 2015 Author Share Posted April 22, 2015 (edited) Thank you soooo much Sir. you resolved my issue.now date is coming in right format ...... Edited April 22, 2015 by kamalpreet (see edit history) Link to comment Share on other sites More sharing options...
nickosn Posted November 10, 2015 Share Posted November 10, 2015 Hi, Why does it not seem to work with 1.6.014 ? Link to comment Share on other sites More sharing options...
NemoPS Posted November 11, 2015 Share Posted November 11, 2015 You mean this does not work?{dateFormat date=$date_from} Link to comment Share on other sites More sharing options...
nickosn Posted November 11, 2015 Share Posted November 11, 2015 (edited) Hi, nemo! Yes. In file admin/themes/default/template/controllers/dashboard/helpers/view.tpl of version 1.6.0.14 Lines 71 to 74 after the change look like {l s='From'} <strong class="text-info" id="datepicker-from-info">{dateFormat date=$date_from}</strong> {l s='To'} <strong class="text-info" id="datepicker-to-info">{dateFormat date=$date_from}</strong> but nothing seems to change in the BO Kind Regards edit. what I was looking for is dd/MM/yyyy in the english backoffice Edited November 11, 2015 by niktaris (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 13, 2015 Share Posted November 13, 2015 You mean it works now? If not, try clearing cache Link to comment Share on other sites More sharing options...
gert Posted November 26, 2015 Share Posted November 26, 2015 Sorry to bust in, but i got it the other way around.... everywhere i got the date format set to DD-MM-YYYY, but in the back-office at invoices and Delivery-slips the back-office is doing it's search like YYYY-MM-DD, So everytime it can't find any records. is there a way to change the settings in this search? Link to comment Share on other sites More sharing options...
NemoPS Posted November 27, 2015 Share Posted November 27, 2015 You mean in the printed invoices and slips? Link to comment Share on other sites More sharing options...
gert Posted November 27, 2015 Share Posted November 27, 2015 no. where you can sellect the invoices and slips from, from instance, the first of the month till the 15th. the selection can't be chosen, because it searches for 2015-01-11 till 2015-15-11. But the orders are booked in the shop like: 01-11-2015 till 15-11-2015. so the selection, made by the shop for making the invoices to PDF should be in another date-format. Link to comment Share on other sites More sharing options...
NemoPS Posted November 28, 2015 Share Posted November 28, 2015 That's the datepicker. Admin folder /functions.php echo ' $(function() { $("#'.Tools::htmlentitiesUTF8($id).'").datepicker({ prevText:"", nextText:"", dateFormat:"yy-mm-dd"'.($time ? '+time' : '').'}); });'; Link to comment Share on other sites More sharing options...
gert Posted November 28, 2015 Share Posted November 28, 2015 maybe the following makes it a bit more clear. btw, i am using presta 1.6.1.1 thanks for your help so far, by the way. Gert https://www.dropbox.com/s/53c7c4w93pqe2jg/help.png?dl=0 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now