Digital Craftsman
  • Search
Sign in Subscribe

date

A collection of 3 posts
Get Monday of week with DateTime
php

Get Monday of week with DateTime

Working with calendars in PHP offers interesting problems. One of them I stumbled upon was finding the Monday of a specific week as a DateTime object. There are multiple ways, especially with adding intervals and getting the current day of the week, but the easiest way I found was the
29 Oct 2018 1 min read
Convert DateTime to different timezone
mysql

Convert DateTime to different timezone

When starting a new project, usually you don't directly start a worldwide service. Because of this most of the time you don't directly start with DateTime conversions as it's just more effort without any benefit. Luckily there are ways to add those features afterwards
10 Sep 2018 1 min read
console

Show current date and time on linux

Sometimes a virtual maschine or your server can run into the wrong date or time. That happens for example if you don't restart a virtual maschine but just pause it. To show the current date and time just enter the following: $ date which output's something like:
09 Sep 2014 1 min read
Page 1 of 1
Digital Craftsman © 2025
  • Datenschutz
  • Impressum
Powered by Ghost