.net - Convert Android SMS table date to meaningful DateTime format using other than Java -
i'm wondering how convert sms table date value e.g. 1293457709636 (miliseconds) meaningful date time value using microsoft platforms, not java.
i've made backup of sms messages htc phone. exported xml file , date have this: 1301061775000. i've got solution post: android - date time sms timestamp in miliseconds unfortunately require have installed , knowledge of java i'm not.
it possible convert format mm/dd/yyyy hh:ii:ss using microsoft (don't shoot me!) tools/ide/languages (.net, c#, vb) or php because have automate somehow process since there more 600 messages.
the android datetime milli-secs since jan 1, 1970. use following exention method convert .net datetimeoffset.
public static datetimeoffset epoch = new datetimeoffset(new datetime(1970, 1, 1), timespan.zero); ... public static datetimeoffset frommillisecssinceepoch(this long millsecs) { return epoch + timespan.frommilliseconds(millsecs); }
Comments
Post a Comment