Insights into Company
← PHP & Laravel

Carbon and Date Handling

Understand the idea. Compare it. Explain it. Test yourself.

Question 1 of 7

How does PHP DateTime differ from Carbon?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 2 of 7

How do you parse and format dates with Carbon?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 3 of 7

How do you calculate tomorrow at 9 AM?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 4 of 7

How do you check whether a time is before 4 PM?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 5 of 7

How do isBefore(), isAfter() and between() work?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 6 of 7

How do you add or subtract time safely?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this
Question 7 of 7

How would you validate an HR working-hours window?

Practice question · write your own answer
  • Define the concept in one or two sentences.
  • Give a small example and trace what happens.
  • Explain one limitation, trade-off, or common mistake.
Practice explaining this