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 6180003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:46:14+00:00 2026-05-24T00:46:14+00:00

I am using .NET environment and wanted to track the expiration date found in

  • 0

I am using .NET environment and wanted to track the expiration date found in credit cards. The date there is of the nature “MMYYYY”. What would be a recommended way to store this ? Should I just use .NET string or instead use the .NET DateTime object ?

  • 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-24T00:46:15+00:00Added an answer on May 24, 2026 at 12:46 am

    In almost all cases the easiest solution is often the best solution. Its easy to maintain, easy for other programmers to recognize, and may even keep you out of trouble (ints and strings can lead to localization problems and invalid values).

    A System.DateTime is the best option and gives you flexibility for those cards that may also expire on a given day (they are rare, but they do exist, and may become more prevalent with temporary credit cards becoming popular). When storing the value just use the Date property of the System.DateTime struct since that will disregard the time components.

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

Sidebar

Related Questions

I'm using .NET 2.0. I noticed that there doesn't seem to be a Environment.SpecialFolder
we have a mixed development environment using ASP.NET MVC and Ruby on Rails. We
I use ASP.NET and WCF services in a load balanced web server environment, using
I've been comparing distributed caching solutions for an ASP.NET environment and would like to
I come from a VB.Net environment, where using Imports System and then IO.Directory.GetFiles(...) works.
I have a c# Windows Forms application, using .NET 3.5. My machine environment is
Environment: Visual Studio Ultimate 2010 Windows XP WPF Desktop Application using .NET 4.0 We
I am working in .Net environment using C#. I need some alternative for the
I tried using Environment.Version.ToString() to determine what .NET framework on the target machine is
I'm working in .net environment (all versions) and using vb.net. I want to generate

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.