Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub Main()
- ' Input from user
- Console.Write("Enter city of birth: ")
- Dim cityOfBirth As String = Console.ReadLine()
- Console.Write("Enter city where birth certificate was issued: ")
- Dim certificateCity As String = Console.ReadLine()
- Console.Write("Enter CNAM paper issue date (yyyy-mm-dd): ")
- Dim issueDateInput As String = Console.ReadLine()
- Dim cnamPaperIssueDate As DateTime
- ' Validate the entered date
- If DateTime.TryParse(issueDateInput, cnamPaperIssueDate) Then
- ' Call validation method
- ValidateApplication(cityOfBirth, certificateCity, cnamPaperIssueDate)
- Else
- Console.WriteLine("Invalid date format. Please use yyyy-mm-dd.")
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment