Date Transforms

G

Guest

Morning to all,

Could someone supply me a way of transforming a numerical (6 digit) number
into a date

The format is held 251006 (dd/mm/yy)

I need it in date format so I can calculate with it correctly

Thanks in advance

Jason
 
V

Van T. Dinh

If it is a numeric Field as you wrote:

DateSerial([Value] MOD 100, ([Value] MOD 10000) \ 100, [Value] \ 10000)

If it is a String value (that looks like number)

DateSerial( Right([Value], 2), Mid([Value], 3, 2), Left([Value], 2) )
 
G

Guest

Once again hat's off to you

Worked a treat

Thanks again

Van T. Dinh said:
If it is a numeric Field as you wrote:

DateSerial([Value] MOD 100, ([Value] MOD 10000) \ 100, [Value] \ 10000)

If it is a String value (that looks like number)

DateSerial( Right([Value], 2), Mid([Value], 3, 2), Left([Value], 2) )

--
HTH
Van T. Dinh
MVP (Access)



Jai_Friday said:
Morning to all,

Could someone supply me a way of transforming a numerical (6 digit) number
into a date

The format is held 251006 (dd/mm/yy)

I need it in date format so I can calculate with it correctly

Thanks in advance

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top