Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_calendar
iso8601_to_datetime/2
Description
iso8601_to_datetime/2 is an Erlang function exported by "age_calendar" module.
Converts ISO 8601 formatted string into date and time tuple.
References
•datetime/0
•Date and time format - ISO 8601
Parameters
Name
Type
Input
string()
Input string in ISO 8601 format.
Default
any()
Optional. Default value to be returned in case the input format is not valid.
Result
Value or Type
tuple()
Returns the current date and time - year, months, days, hour, minutes, seconds.