.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> JavaScript/VBScript >> Post New Question Subscribe to Interview Questions

Date Regular Expression.

Posted By :Ghanashyam Nayak     Posted Date :January 07, 2011    Points :15   Category :JavaScript/VBScript 
Date(mm/dd/yyyy) : /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/

You can also find related Interview Question to Date Regular Expression.  below: 

Regular Expression For US Zip Code.

/(^\d{5}$)|(^\d{5}-\d{4}$)/ (More...)

Regular Expression For Ip Address.

/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ (More...)

Convert the expression ((A + B) * C - (D - E) ^ (F + G)) to equivalent Prefix and Postfix notations.

Prefix Notation:
^ - * +ABC - DE + FG

Postfix Notation:
AB + C * DE - - FG + ^ (More...)

How can I switch to Expression Blend from Visual Studio?

Expression blend provide great extensibility for XAML files.To switch to Expression Blend, right-click on the XAML file and select Open in Expression Blend. (More...)

Should validation (did the user enter a real date) occur server-side or client-side? Why?

Validation will be done in both sides i.e., at the server side and client side. Server side validation will be done even though client side validation performed on the code because of proper
security reasons. (More...)

How to Find Number of Days for provided date range?

Code extract :

TimeSpan DayDifference = Convert.ToDateTime("2009-1-7").Subtract(Convert.ToDateTime("2009-1-1"));

To find the difference of the days, here we have used Subtract method. The Subtract method does not take start date into consideration. Hence, to get the exact number of days for the date range we need to add one more day to the result.

Response.Write("Number of Days : " + DayDifference.Days+1); (More...)

What is the namespace used for regular expressions?

System.Text.RegularExpressions namespace (More...)

MONTHS_BETWEEN date function is used for what purpose?

MONTHS_BETWEEN is used to find the difference between two dates. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend