Questions tagged [date]

A date is a reference to a particular day represented within a calendar system, and consists of year, month and day.

Filter by
Sorted by
Tagged with
5
votes
2answers
6k views

Customer created_at Date off by months

I'm working on syncing my customers with a third party application and have discovered that many of my created_at dates are way off. Today is 2014-04-08 yet I have several records with a created_at ...
14
votes
2answers
6k views

How to change date format of magento 2 admin grid filter without using ui component?

Below is some_grid_block.xml , How can I change date format in calendar filter. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
9
votes
2answers
12k views

How to let user choose delivery date?

My website is gifting website so I need to let users select the date of delivery. I want that selection (textbox with calendar popup) on shipping details step. I can google for a free extension but I ...
0
votes
1answer
677 views

Magento 1.9 - How to get shipped date and display on Customer account My Order?

Backend generate date when we shipped order, Frontend shown only order created dated, Is it possible using event-observer?
4
votes
1answer
5k views

Date field system.xml

I wonder what 'date' type needs in system.xml. I keep getting the error : system.xml (only the field): <field id="date" translate="label" type="date" sortOrder="2" showInDefault="1" showInWebsite=...
6
votes
2answers
2k views

Customer created / logged in timestamps in Admin

Over the weekend (2014-10-04 midnight through 2014-10-06 noon) I noticed that the customer created and last logged in dates were incorrect in the Admin. Last Logged In: Oct 6, 8295 10:12:43 AM (...
0
votes
2answers
3k views

Date format in advanced search

My locale is set to France but the advanced search only works in US format. I've made a custom attribute (date type) and add it to the advanced search. And there are 3 problems: The datepicker (...
4
votes
1answer
7k views

Set created_at when programatically creating a Magento order

I'm struggling to set the order date when creating a magento order programatically. Here is what I'm trying to use: $orderObj->setData('created_at', $date); $orderObj->setUpdatedAt($date); but it ...
2
votes
1answer
10k views

How to add date filter to product collection

I was wondering if there is any way to add a date filter to a product collection. What i am trying to do: I have a collection for new products, i need to add a filter to it so it filter the products ...
1
vote
2answers
6k views

How to disable given date in default calendar?

I have a table in the database which contains some dates. I want to disable those dates in magento default calendar. The calendar is in front-end checkout process (used to add delivery date for the ...
0
votes
2answers
1k views

date displays wrong

I am trying to display a date in the frontend. Currently the code calls the date like so <?php echo $date->date('m-d-Y', $_item->getCreatedTime()); ?> the date in the database is: 2017-...
28
votes
7answers
50k views

Magento 2 Get Current Store Date Time

In Magento 1.x you could get the store date time via Mage::getModel('core/date')->gmtDate(); What would be the equivalent to this in Magento 2.x?
5
votes
4answers
3k views

How do I create date input field with calendar in Magneto2? [SOLVED]

I want to create a date input field with calendar control where I can change year and month by drop down.
2
votes
2answers
2k views

Timer countdown in product view page

I want to display timer countdown in product view page. how to achieve this ?
4
votes
4answers
7k views

Show product only within a date range (between start date and end date)

I want to create a product with start date and end date. Once the end date comes the product should be hidden from the product listing. Are there any methods to complete this task? I tried with ...
2
votes
1answer
3k views

Disable future dates in magento datepicker

I am using magento datepicker. i have an array dates which i want to disable that days in the magento datepicked. for example 08/29/14 is holiday. so i want to make the date as disable so the user ...
1
vote
2answers
478 views

M2 | How to configure store's timezone to set date as I am getting wrong date in magento?

I get different date from todays date. I tried below ways and all give difference in time: 1) \Magento\Catalog\Block\Product\Context $contexts, .......... .......... $this->...
3
votes
2answers
2k views

Add Custom Product Grid Created Date And Created By Magento 2

In magento 2 admin panel, at product list grid area, i want to add one more grid with date, that date define product create date. so we get idea at which time product was created. And i also want to ...
3
votes
1answer
2k views

Sort Products by Date in Admin

Often we need to sort products in the admin on creation date. I know I can sort on ID, and this way I'll get the products in the this order, and I found some (free) extensions that give me the option ...
2
votes
1answer
3k views

Date Validation not working ( conflict with Date Picker )

Following issue wiht 1.8 CE: When I’m trying to save CMS custom design info: Custom Design From Custom Design To The validation fails ( even if dates are correct ) I’m trying with chrome I have ...
2
votes
1answer
1k views

Magento2: Add date-from validation for dob (date of birth) field in customer creation

I want to limit the dob field in account creation form to be not less than 01/01/1900. I thought 2 way: - limit the calendar widget (but maybe someone could input the date directly) - add a ...
1
vote
3answers
1k views

Please enter a valid full date translate

We want to translate "Please enter a valid full date", but when we edit the csv file, nothing happens. This is the default Magento validation line in the one page checkout. When a user enters the ...
1
vote
3answers
2k views

Showing an estimated delivery date

I am trying to show an estimated delivery date to my shipping methods, I currently have this code which is displaying the date that is it today in the format of Thursday-November-2014 <?php $...