hello i need to calculate age of a person and dispaly it in a label. for example i have a textbox, with these values, 130790, from this number it should generate my age. DDMMYY
akshayksh 0 Newbie Poster
Recommended Answers
Jump to PostDim plain As String = "130790" If plain.Length <> 6 Then Throw New FormatException("wrong format. Please use DDMMYY") End If Dim _date1 As String = plain.Insert(2, ".").Insert(5, ".") Dim _date3 As Date = Date.Parse(_date1) Console.WriteLine(_date3)
All 2 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
GeekByChoiCe 152 Practically a Master Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.