Simple task with dates and intervals
1 USDif ($fieldName = = 'day') {
$udateOfBirth = new DateTime ($rowData['date_performance']);
$dateInterval = $udateOfBirth->diff(new DateTime());
$dateInterval = $udateOfBirth->diff(new DateTime());
$value = $dateInterval->format('%R%d');
The
Нужно доделать данный кодец сейчас он работает только почему то не совсем правильно должно считать количество дней от текущей даты получаться сейчас положительные даты он покует с знаком - а отличтальные просто без знака а нужно что бы все было нормально отрицательные с - а положительные просто цыфры вот пример кода
if ($fieldName == 'day') {
$udateOfBirth = new DateTime($rowData['date_performance']);
$dateInterval = $udateOfBirth->diff(new DateTime());
$dateInterval = $udateOfBirth->diff(new DateTime());
$value = $dateInterval->format('%R%d');
}
Client's feedback on cooperation with Pavel Zozulya
Simple task with dates and intervalsVery quickly I recommend!
Freelancer's feedback on cooperation with Konstantin Kuyevda
Simple task with dates and intervalsA great employer. Specific requirements for the project. A good contact. There was no problem with the payment as well.
I recommend it.
-
Winning proposal1 day1 USD
260 9 0 Winning proposal1 day1 USDHello to you.
I think there is already a ready solution.
Contact me: personal messages freelancehunt, telegram - t.me/teoformartel
I will be happy to cooperate.
Здравствуйте.
Считайте, уже есть готовое решение.
Связаться со мной: личные сообщения freelancehunt, telegram - t.me/teoformartel
Буду рад сотрудничеству.
Current freelance projects in the category PHP
Laravel developer with skills working with SphinxHello, I am looking for a Laravel developer who can help improve the current functionality of one of the projects. Skills in working with Sphinx are important, as well as the ability to work with JS at a more or less basic level. Please specify the cost of 1 hour of your work in… PHP, Web programming ∙ 1 proposal |
Develop a responsive website and integrate it into the Wordpress engineAdaptively layout a multi-page website and integrate it into the Wordpress engine. Budget and deadlines are specified in the project. It is mandatory to report on the progress of the work. Edit all website content. After development, it will need to be transferred to our hosting… HTML and CSS, PHP ∙ 10 proposals |
Change the appearance of Woocommerce CheckoutNeed to create an order checkout page (standard Woocommerce page) like on avtozvuk.ua store. Also, add delivery methods "Nova Poshta" and "Ukrposhta". Additionally: Integrate SMS notifications for order status and SMS verification. In the application, write two amounts. PHP, Web programming ∙ 4 proposals |
Set up a Wordpress/WooCommerce storeInstall and configure Wordpress (Phlox Pro theme) + WooCommerce Set up Ukrainian translation, main page appearance, product page, and product catalog. Configure the order placement process. Add delivery modules Nova Poshta, Ukrposhta, payment (Monobank acquiring), Keu crm We… PHP, Web programming ∙ 10 proposals |
"Magento 2.4.6 adding a product through attributes"Problem: The website has many products that can be sold together with other products. Products need to be added through an attribute in the configuration product. For example: A computer mouse is available in different colors, and a mouse pad can be purchased with it (although… PHP, Web programming ∙ 3 proposals |