Time validation in ASP.Net MVC using a regular expression.

Just a quick tip for Time validation in ASP.Net MVC for your data model using a regular expression. Place the following in your model: [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm}")] [RegularExpression(@"^(?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$", ErrorMessage = "Invalid time.")] public DateTime? YourDateTime { get; set; } This will perform the validation for 24 hour time in the format HH:mm [...]

Bungy jumping, engagement and learning a whole lot of tech

What a full on 6 months I’ve just had. I got engaged, visited Queenstown and New Castle in Australia, Bungy jumped for the first time (proof here). And to top that off I started a new job at SpeEDI software and launched my own web application Vote Daily Deals (http://votedailydeals.co.nz). While doing all that I [...]

Travel hacking Air New Zealand

I was reading a great blog post on travel hacking from the team at LifeHacker. So I thought I’d give some of my pointers. From that article I found my favourite new flight comparison tool, SkyScanner and the best part is it’s in NZ dollars. Web Jet have a nice monthly deal finder search tool, choose your destination and [...]

Javascript (jQuery) sliders round up

I’ve used a number of Javascript based image sliders on a number of projects in the last year. They all have some points of difference so I thought I’d share what they are and make people aware of them.   Nivo Slider http://nivo.dev7studios.com/ I’m currently using Nivo slider on this website for the home page. [...]

CSS3 and my toolset

These days I’m trying as much as possible to get away without having to create pixels with websites. To do this I use CSS3 (part of the subset of the HTML 5 standard) to create the styling of elements without needing to open up Fireworks or Photoshop. There are a couple of benefits for this [...]