Horje
string to date vb Code Example
string to date vb
string iDate = "05/05/2005";
DateTime oDate = Convert.ToDateTime(iDate);
MessageBox.Show(oDate.Day + " " + oDate.Month + "  " + oDate.Year );
string to date vb
Dim iDate As String = "05/05/2005"
Dim oDate As DateTime = Convert.ToDateTime(iDate)
MsgBox(oDate.Day & " " & oDate.Month & "  " & oDate.Year)
convert str to datetime
import datetime

# str value "Apr 2, 2019" convert into any format. 
datetime.datetime.strptime('Apr 2, 2019', '%b %d, %Y').strftime('%a, %d %b %Y')




3

Related
vba copy paste value only Code Example vba copy paste value only Code Example
excel-vba how to convert a column number into an excel column Code Example excel-vba how to convert a column number into an excel column Code Example
vba code to remove duplicates from a column Code Example vba code to remove duplicates from a column Code Example
excel vba check if directory exists Code Example excel vba check if directory exists Code Example
excel vba wait Code Example excel vba wait Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11