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

  • Home
  • SEARCH
  • 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 3805774
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:43:52+00:00 2026-05-19T14:43:52+00:00

I want to get today’s date. Using Now(), I get both date and time

  • 0

I want to get today’s date. Using Now(), I get both date and time but I need date only.
How to get it?
Thanks
Furqan

  • 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-19T14:43:52+00:00Added an answer on May 19, 2026 at 2:43 pm

    Use System.DateTime.Today. Some additional notes:

    • While you’re only interested in the date, you still get a System.DateTime object. That is, there still is a time portion in the returned value, but it’s left blank (all zeroes).

      It’s important to remember this when you compare dates. If you want to compare two dates, and you’ve fetched one date via DateTime.Today and another date via DateTime.Now, then these two dates will not be equal — precisely because one has the time set and the other doesn’t.

    • In VB.NET, the Date keyword is equivalent to the System.DateTime type. So you can write:

      Date.Today
      

      P.S.: It just occurred to me that it might be a good idea to write Date.Today, but DateTime.Now, in order to make it even more explicit that the former property only returns the date portion, while the latter returns both a date and time portion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get today's date in the format of mm-dd-yyyy I am using
I want to get the base 10 logarithm of a Fixnum using Ruby, but
Using MS Access database I want to display today record min (time) and previous
In php i can get today date/day by using : $today = date('D, Y-m-d');
I want to get today's date + one year. How do I achieve this
I am using the following code to get today's date. Calendar cal = Calendar.getInstance();
I want to get started doing some game development using Microsoft's XNA. Part of
I want to get a list of files in a directory, but I want
I'm using the David Walsh PHP calendar script and need to format my date
before this i'm using this function to from 6 month date to today date..

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.