Skip to main content

combineDateTime function

[String] combineDateTime(

  1. [[String] date, ]
  2. [[String] time]

)

Combines the given date and time strings into a single string.

params:

  • date: The date string in a valid date format (e.g., 'YYYY-MM-DD').
  • time: The time string in a valid time format (e.g., 'HH:MM:SS').

returns:

  • String: A string that combines the date and time, separated by a space.

Implementation

String combineDateTime(String date, String time) 
  1. talawa
  2. time_conversion
  3. combineDateTime function
time_conversion library