VOOZH about

URL: https://www.geeksforgeeks.org/r-language/getting-string-representation-of-the-given-date-and-time-object-in-r-programming-strftime-function/

⇱ Getting String Representation of the given Date and Time Object in R Programming - strftime() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Getting String Representation of the given Date and Time Object in R Programming - strftime() Function

Last Updated : 15 Jul, 2025

strftime() function in R Language is used to convert the given date and time objects to their string representation.
 

Syntax: strftime(time) 
Parameters: 
time: specified time object
 


Example 1: 
 

Output: 
 

[1] "2020-06-01 16:15:10"


Example 2: 
 

Output: 
 

[1] "2020-06-17"


 

Comment

Explore