Hosted By

Contact Me

Misc Links

OpenNTF BlogSphere LotusGeek CoComment Custom Button

Ads by Google

Welcome to keithstric.com!

I hope you find this site useful in some way or another. I strive to bring you all sorts of geeky information and solutions to your most frustrating of issues with the occasional rant on whatever topic, technical reviews and weblog. You'll also find many products that I've developed and make available for you to use however you like. So, grab a cup of coffee, sit down and visit for a while.

« Handy-Dandy Folder Action scripts | Home Page| First attempt at a background image »

LotusScript, Dates and Times... Oh my

06/18/2009 3:26 PM By Keith Strickland

I've been messing with Date/Times here a lot lately and it's behaviour is rather inconsistent to say the least, especially NotesDateTime.LSLocalTime Sometimes it returns 06/18/2009 01:00:00 PM, other times it returns 6/18/2009 1:00:00 PM. I was wanting to use the Date/Time to do a lookup in a view, but due to the inconsistenc of LSLocalTime I've resorted to converting the Date/Time to a double and using that instead. This behaves much more reliably as you get the same number no matter what. What gave me this idea was this post over on Tim Tripcony 's site which is a rather interesting post and a nice shorthand way of handling date adjustments.

But sometimes I just get frustrated with the way Notes handles Date/Times.


Comments

ID: 1
Date: 06/19/2009 04:51:12 AM
Name: Uwe
Website: http://null

Did you use different notes client versions ? In Notes 8, they changed the behaviour of LSLocalTime.

Post A Comment

:-D:-o:-p:-(:-):-\:-|:angry::cool::cry::dontknow::emb::hairout::laugh::rolleyes::whew:;-)

Subscribe to keithstric.com

OpenNTF

Disclaimer

The opinions and ideas posted on keithstric.com are not necessarily the opinions and ideas of my employer. The solutions, techniques and code provided here are not guaranteed or warranted in any way and are free for you to use at your own risk.