Re: Updating Age in Database
Hy, u may try this.. Dim dateOfBirth as Date = "Birthdate" Dim CurrentDate as Date = Now() Dim myAge as integer = DateDiff(DateInterval.Year,dateOfBirth,CurrentDate) after u get ur age.. apply an...
View ArticleRe: Updating Age in Database
anyone? can tell me how to update the database with this code?
View ArticleUpdating Age in Database
Now that the age is entered into the database the first time How will I go about updating it? SqlConnection1.Open() Dim mySQL As String = "SELECT birthday, myage FROM members" Dim objCM As...
View ArticleThanks much my man
it helped it helped. Thanks for hanging in there with me BasicDatePicker.
View ArticleRe: how do you aquire a persons exact age by birthday?
Hi ck1mark, I have no idea what you're trying to do. The code above is not going to do anything. I've whipped up a simple example of how to use the OnClick property and call the Age Method. The result...
View ArticleRe: how do you aquire a persons exact age by birthday?
code behind: Dim dateOfBirth As Date = "11/25/2000" i have no results yet. thanks so far its a great start
View ArticleRe: how do you aquire a persons exact age by birthday?
Hi ck1mark, You must convert your TextBox value to a DateTime object then pass to the Age Method. The Age Method returns an Integer which you then call the .ToString(). Something like the following...
View ArticleRe: how do you aquire a persons exact age by birthday?
you posted: btw and thank you [Visual Basic] Public Shared Function Age(ByVal dateOfBirth As DateTime) As Integer If DateTime.Today.Month < dateOfBirth.Month Or DateTime.Today.Month =...
View ArticleRe: how do you aquire a persons exact age by birthday?
Hi ck1mark, 849743 Hope this answers your question.
View ArticleRe: how do you aquire a persons exact age by birthday?
ok, 3/12/2005 - 8/19/1982 = 5/7/22 well i need to update the database criteria for age im kinda curious if there is a smart function for this?
View ArticleRe: how do you aquire a persons exact age by birthday?
take the current year and subtract the birthyear... not quite sure exactly what you're looking for...
View Article
More Pages to Explore .....