Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert date String to TimeStamp DateTime

String sdatetime = "2021-12-04";
DateTime sdate = DateTime.parse(sdatetime);
int stimestamp = sdate.microsecondsSinceEpoch;
print(stimestamp); //output: 1638555300000000
 
PREVIOUS NEXT
Tagged: #Convert #date #String #TimeStamp #DateTime
ADD COMMENT
Topic
Name
5+8 =