chamsi09

Untitled

Oct 15th, 2024
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.72 KB | None | 0 0
  1. Sub Main()
  2.     ' Input from user
  3.     Console.Write("Enter city of birth: ")
  4.     Dim cityOfBirth As String = Console.ReadLine()
  5.  
  6.     Console.Write("Enter city where birth certificate was issued: ")
  7.     Dim certificateCity As String = Console.ReadLine()
  8.  
  9.     Console.Write("Enter CNAM paper issue date (yyyy-mm-dd): ")
  10.     Dim issueDateInput As String = Console.ReadLine()
  11.     Dim cnamPaperIssueDate As DateTime
  12.  
  13.     ' Validate the entered date
  14.     If DateTime.TryParse(issueDateInput, cnamPaperIssueDate) Then
  15.         ' Call validation method
  16.         ValidateApplication(cityOfBirth, certificateCity, cnamPaperIssueDate)
  17.     Else
  18.         Console.WriteLine("Invalid date format. Please use yyyy-mm-dd.")
  19.     End If
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment