Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 692243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:37:50+00:00 2026-05-14T02:37:50+00:00

Given a variant, does VBScript have an equivalent of C#’s DateTime.TryParse method?

  • 0

Given a variant, does VBScript have an equivalent of C#’s DateTime.TryParse method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:37:50+00:00Added an answer on May 14, 2026 at 2:37 am

    Use IsDate(stringDate) in conjunction with CDate(stringDate).

    Use the IsDate() function to determine if date can be converted to a date or time.

    CDate() recognizes date literals and time literals as well as some numbers that fall within the range of acceptable dates. When converting a number to a date, the whole number portion is converted to a date. Any fractional part of the number is converted to a time of day, starting at midnight.

    CDate recognizes date formats according to the locale setting of your system. The correct order of day, month, and year may not be determined if it is provided in a format other than one of the recognized date settings. In addition, a long date format is not recognized if it also contains the day-of-the-week string.

    The following example uses the CDate function to convert a string to a date.

    MyDate = "October 19, 1962"   ' Define date.
    MyShortDate = CDate(MyDate)   ' Convert to Date data type.
    MyTime = "4:35:47 PM"         ' Define time.
    MyShortTime = CDate(MyTime)   ' Convert to Date data type.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given two identical boost::variant instances a and b , the expression ( a ==
Given a specific DateTime value, how do I display relative time, like: 2 hours
Given a DateTime representing a person's birthday, how do I calculate their age in
Let's say that I have a boost::variant<std::string, int> myVariant; In this object I keep
Given that I have the appropriate rights, how can I get performance data (ie.
I have two arrays for a chess variant I am coding in java...I have
I have a controller method that has long been handling JSON requests by parsing
I have a TIFF file in memory, which I obtained by a variant of
Given Dim arr1 As Variant Dim arr2 As Variant Dim arr3 As Variant arr1
How does the C++ compiler decide which function/method to call if there are multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.