Date to timestamp
Function Syntax
int date_to_timestamp(string inFormat ,string dtg )
- inFormat is how the input string is formatted.
- dtg is the date string to convert.
Converts a date to a UNIX timestamp (in milliseconds). Full information on SimpleDateFormat here.