Hii all,
im doin a vb project where i need to update the current date..??
plz someone tell me wat changes i need to do to the code to get the current time....
thnq..
im doin a vb project where i need to update the current date..??
Code:
(vb) Private Function updateDate(ByVal strDate As String) As String 'to convert valid date format Dim xdate As String Try xdate = "'" + Format(Convert.ToDateTime(strDate), "yyyy-MM-dd") + "'" Catch ex As Exception xdate = "'" + "0000-00-00" + "'" End Try updateDate = xdate Return updateDate End Function
thnq..
Comment