Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default What is Date() equivalent in Excel?

I'm trying to write SQL within Excel. I'm used to Date() and Now() but
those don't seem to work. Can anyone tell me the equivalent?

Thanks,
Ron


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default What is Date() equivalent in Excel?

Not 100% sure what you are up to, but you can try Today()... If you want a
text string to embed in a SQL statement then you can use

format(Now(), "yyyyddmm") in VBA or
Text(now(), "yyyyddmm") in Excel
--
HTH...

Jim Thomlinson


"Ronald S. Cook" wrote:

I'm trying to write SQL within Excel. I'm used to Date() and Now() but
those don't seem to work. Can anyone tell me the equivalent?

Thanks,
Ron



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NZ function equivalent in Excel jg Excel Worksheet Functions 7 April 21st 23 05:15 PM
@DSUM (123) equivalent in excel jdelayknee New Users to Excel 2 July 21st 06 04:56 PM
equivalent code in c# for excel R102oy Excel Programming 0 March 16th 06 10:20 PM
Autotext equivalent in Excel? [email protected] Excel Programming 0 July 29th 04 08:38 PM
Excel equivalent of 'Keep lines together' Fred Smith Excel Programming 2 July 8th 04 03:57 AM


All times are GMT +1. The time now is 04:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"