Is it possible to convert a string to a date in bash? For example: I have a time format: "%Y-%m-%dS%H:%M:%S" . An example of such a line is "2009-06-24S12:34:56" . I need to convert this string to a date (unix timestamp) in bash. How can i do this?
bash datetime formatting
Markus
source share