Closed seyyed-sina closed 6 years ago
Hi, Sorry for delay, As you know timestamp is the number of seconds between a particular date and January 1st, 1970 and 1331/2/13 in Gregorian is 1952/05/03 so the timestamp has to be negative and I think -557465400 is OK.
I want to convert birthday input to unix timestamp. The problem is that it converts to invalid Unix timestamp when I enter birthYear for example '1331'.
Here's my code:
The result for '1331/2/13' is:
-557465400