how to convert 7 digit number to time...?
Int i1= 2061262;
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Oct 3, 2013, 2:11 AM EDT
if its 6 digit try this:
int timeNumber = 204342;
DateTime time = DateTime.ParseExact(timeNumber.ToString().PadLeft(6, '0'), "HHmmss", null);
VulpesRank #55 · 29.2K reputationPosted Oct 3, 2013, 5:36 AM EDT
This takes the form: yyyydddd where the first 4 digits is the year and the last 3 digits represent the number of the day in that year.
If that's what it is, you can convert it to a 'normal' date as follows:
The output is:
19 September 2061
Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 3, 2013, 5:48 AM EDT
is there any logic to cut it down in to time?
i.e first two digit is hours....etc like that?
And are you looking solution in c# or SQL?