Rob DiNardo - Web Development Tips

Home

Reference

warning: Creating default object from empty value in /var/www/robdinardo.com/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.

Convert string to DateTime or output DateTime to string using .NET

Rob — December 1, 2010 - 20:14

I often times come across a situation where I have a string in a certain date time format and wish to convert that string into a .NET DateTime object for further manipulation.  In one recent situation, a date was supplied in an XML node (without a specified data type) as a string, but the output of the date had to be in a specific format for my client. 

Example:  We need to convert <submit_date>2010-12-04 13:22:32</submit_date> and output it as December 4, 2010 at 1:22 PM 

  • .NET
  • c#
  • coding
  • csharp
  • Reference
  • Rob's blog
  • Read more

Credit Card Numbers For Testing Your Applications

Rob — November 5, 2010 - 16:36

I have made a couple of apps that require credit cards numbers.  To save time and hits to your merchant account, it is a good idea to validate the user credit card number BEFORE sending to your authorization service.  Below is a list of some common credit card carriers and some test credit card numbers.  These credit card numbers can be used to validate your credit card validation algorithm.  

Credit Card Type - Credit Card Number

  • coding
  • Reference
  • Rob's blog
  • Read more
Syndicate content

User login

  • Request new password

Code

  • WordPress Plugins