LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Convert Date to number

Hi all,

Question: How do I convert the Date selected from a calendar to a numerical
date?

Example: I have a user form with a command button that pulls up a calendar,
and of course the user can select a date and so on. The issue is that the
form requires a date in a numerical format, ie yymmdd, with no hash marks
(all together). I know how to put it in the spreadsheet and convert the
values by separating them and then concatenating them, but I am stumped on
how to code it to do the same without resorting to putting on a spreadsheet,
converting, concatenating and so on.

My thought is that there has to be a way to do that via code, in lieu of
putting the date on a spreadsheet and letting the spreadsheet do the work.

My thanks to any and all whether or not I can solve my dilemna.
 
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
Convert number to date value saz2369 Excel Discussion (Misc queries) 8 October 13th 09 03:10 PM
Convert number to date Teri Excel Discussion (Misc queries) 7 May 18th 07 06:29 PM
how do you convert a number into a date JCM Excel Worksheet Functions 2 April 6th 07 02:26 AM
Convert Date to number? JethroUK© Excel Worksheet Functions 6 May 8th 06 10:15 PM
How do I convert Date serial number to date rdunne Excel Worksheet Functions 1 April 12th 05 03:04 PM


All times are GMT +1. The time now is 06:56 AM.

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"