May 15, 2007 #1 NotSQL Technical User Joined May 17, 2005 Messages 205 Location GB Can anyone help me convert a georgian Date to julian date format using VB script.. Regards Dave
May 15, 2007 1 #2 earthandfire Programmer Joined Mar 14, 2005 Messages 2,924 Location GB You couldtry the following (UK date based): Code: Function JulDate(greg) JulDate = ((Year(greg) - 1900) * 1000) + (CDate(greg) - CDate("31/12/" & Year(greg) - 1)) End Function where [tt]greg[/tt] is the Gregorian date that you pass in. Hope this helps. Upvote 0 Downvote
You couldtry the following (UK date based): Code: Function JulDate(greg) JulDate = ((Year(greg) - 1900) * 1000) + (CDate(greg) - CDate("31/12/" & Year(greg) - 1)) End Function where [tt]greg[/tt] is the Gregorian date that you pass in. Hope this helps.