Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I'm using .net with a foxpro8 backend. In my table I have a BATCH field that contains a 'sort of Julian date'.ie 46 is 6th January 2004 & 3365 is 31st Dec 2003. I need to sort these so I have the oldest first and newest last.

 

I have used the datepart functions while validating input but can�t work out how to get this to work in this case and convert to a real date.

I think converting to a real date is the easiest way to do this but if you have any other thoughts......

 

Thanks

Posted

They are never dates just a four digit number ie 4051 is today.

Dont worry too much I think I have found a way round it by have 2 indexes !1) order on first digit 2) order last 3 digits. Think this will work.

 

#Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...