Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

conversion from datetime to UnixTimeStamp issue

$
0
0

Hi 

I have a .txt file and in this i have many values separated by semicolon(;). In this file the second value is date in ["yyMMdd"] format .I am converting this Date to UnixTimestamp and writing output in an xml file as a <DateTimeStamp> UnixTimestampvalue<DateTimeStamp/> at 00h:00m:00s.

forexample:

Date-150604 (at 00h00m00s) means June 4,2015

Output - <DateTimeStamp>1433368800<DateTimeStamp/>

my code is working fine but if i specify 30, the  DateTimeStamp value becomes negative.. plz help


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>