---
title: "Discussion on \"Convert TimeOfDay To DateTime in Dart\" | Hashnode"
description: "Discussion on \"Convert TimeOfDay To DateTime in Dart\". timeOfDayToDateTime() function converts TimeOfDay object to DateTime. You can optionally pass DateTime value to merge with particular date. \nDateTime timeOfDayToDateTime(TimeOfDay timeOfDay, {DateTime? dateTime}) {\n  if (dateTime != null) {\n    retur..."
url: "https://hashnode.com/posts/convert-timeofday-to-datetime-in-dart/60c49b10a25fa357af840fb2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Convert TimeOfDay To DateTime in Dart](https://amitised.hashnode.dev/convert-timeofday-to-datetime-in-dart?utm_source=hashnode&utm_medium=feed)

timeOfDayToDateTime() function converts TimeOfDay object to DateTime. You can optionally pass DateTime value to merge with particular date. DateTime timeOfDayToDateTime(TimeOfDay timeOfDay, {DateTime? dateTime}) { if (dateTime != null) { retur...

Jun 12, 2021 · 1 min read · amitised.hashnode.dev  
Read the article

-   [#dart](https://hashnode.com/tag/dart)

## Written by

[Amit Patil](https://hashnode.com/@amitised)

@amitised

  
[View profile](https://hashnode.com/@amitised)

Flutter Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
